This commit is contained in:
2025-09-22 22:19:32 +00:00
parent 5c078feab5
commit d8eae8a1a5
4 changed files with 97 additions and 17 deletions

View File

@@ -16,6 +16,7 @@ default_border pixel 2
gaps inner 4
smart_borders on
smart_gaps on
show_marks on
title_align center
font pango:{{ .theme.font.name_regular }} {{ .theme.font.size_base_pt }}
output * bg #{{ .theme.color.bg }} solid_color
@@ -74,6 +75,11 @@ bindgesture swipe:left workspace next
############################################
############### containers #################
# numeric row
bindsym --to-code {
$mod+Minus opacity minus 0.05
$altmod+Minus opacity plus 0.05
}
# top row - layouts
bindsym --to-code {
$mod+p layout splitv
@@ -91,12 +97,12 @@ bindsym --to-code {
}
# mid row - focus, movement
bindsym --to-code {
$mod+$fwd focus child
$mod+$fwd exec ~/.local/bin/sway/focus-cousin.sh prev
$mod+$left focus left
$mod+$up focus up
$mod+$down focus down
$mod+$right focus right
$mod+$bwd focus parent
$mod+$bwd exec ~/.local/bin/sway/focus-cousin.sh next
$altmod+$left move left 40px
$altmod+$up move up 40px
$altmod+$down move down 40px
@@ -110,17 +116,14 @@ bindsym --to-code {
bindsym --to-code {
$mod+d scratchpad show
$altmod+d sticky enable; move scratchpad
$mod+z focus tiling
$altmod+z focus floating; floating disable; sticky disable
$mod+h focus floating
$altmod+h floating enable; sticky enable
$mod+k focus prev sibling
$mod+Comma opacity minus 0.05
$mod+Period opacity plus 0.05
$mod+slash focus next sibling
$mod+k focus floating
$altmod+k floating enable; sticky enable
$mod+h focus tiling
$altmod+h focus floating; floating disable; sticky disable
$mod+x exec wtype -M ctrl x -m ctrl
$mod+c exec wtype -M ctrl c -m ctrl
$mod+v exec wtype -M ctrl v -m ctrl
$mod+Slash exec ~/.local/bin/sway/search-mode.sh
}
floating_modifier $mod normal
############################################