sway: add moving floating windows to edges

This commit is contained in:
Konstantin Koslowski 2021-02-21 21:16:55 +01:00
parent fbbdb071cd
commit a734e43cce

11
config
View file

@ -21,6 +21,7 @@ set $brightness_cmd $HOME/.config/sway/bin/sway_brightness
set $output_cmd $HOME/.config/sway/bin/sway_output set $output_cmd $HOME/.config/sway/bin/sway_output
set $suspend_cmd $HOME/.config/sway/bin/sway_suspend set $suspend_cmd $HOME/.config/sway/bin/sway_suspend
set $volume_cmd $HOME/.config/sway/bin/sway_volume set $volume_cmd $HOME/.config/sway/bin/sway_volume
set $move_cmd $HOME/.config/sway/bin/sway_move
set $font Cascadia Code PL Regular 10 set $font Cascadia Code PL Regular 10
# Your preferred application launcher # Your preferred application launcher
@ -246,6 +247,16 @@ mode "move" {
bindsym Shift+$down move down 100px bindsym Shift+$down move down 100px
bindsym Shift+$up move up 100px bindsym Shift+$up move up 100px
bindsym Shift+$right move right 100px bindsym Shift+$right move right 100px
# edges
bindsym q exec $move_cmd top-left
bindsym w exec $move_cmd top-center
bindsym e exec $move_cmd top-right
bindsym a exec $move_cmd center-left
bindsym s exec $move_cmd center-center
bindsym d exec $move_cmd center-right
bindsym z exec $move_cmd bottom-left
bindsym x exec $move_cmd bottom-center
bindsym c exec $move_cmd bottom-right
# Return to default mode # Return to default mode
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"