dotfiles/de/home/.config/sway/config.d/keys.d/windows
2026-03-03 16:15:02 -08:00

59 lines
1.4 KiB
Text

# Window Management
bindsym {
#kill focused window
$mod+Shift+q kill
#move focus around
$mod+Left focus left
$mod+Down focus down
$mod+Up focus up
$mod+Right focus right
#move focused window
$mod+Shift+Left move left
$mod+Shift+Down move down
$mod+Shift+Up move up
$mod+Shift+Right move right
#fullscreen
$mod+f fullscreen
#change split orientation
$mod+comma splith
$mod+period splitv
$mod+slash layout toggle split
#change layout style
$mod+semicolon layout toggle split tabbed stacking
$mod+apostrophe exec swayr toggle-tab-shuffle-tile-workspace exclude-floating
#focus parent
$mod+a focus parent
#toggle floating
# $mod+Shift+space floating toggle
$mod+Shift+space exec '$HOME/.config/sway/scripts/floating_toggle.sh'
#swap between tiles and floats
$mod+space focus mode_toggle
#swayr binds
$mod+Ctrl+S exec swayr switch-workspace-or-window
$mod+Ctrl+Tab exec move-focused-to-workspace
$mod+Ctrl+Shift+Tab exec steal-window
#enter resize mode
$mod+r mode "resize"
}
mode "resize" {
bindsym {
#right: grow width
Right resize grow width 10px
# left: shrink width
Left resize shrink width 10px
# up: grow height
Up resize grow height 10px
# down: shrink height
Down resize shrink height 10px
# Return to default mode
Return mode "default"
Escape mode "default"
$mod+r mode "default"
}
}
#move floating window
floating_modifier $mod normal