sway: sort scratchpad, add move mode

This commit is contained in:
Konstantin Koslowski 2020-12-23 11:24:22 +01:00
parent 04fa8b33cb
commit ce20a704d4

27
config
View file

@ -68,7 +68,7 @@ bindsym $mod+p exec $menu
floating_modifier $mod normal
# Reload the configuration file
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r reload
# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
@ -176,12 +176,14 @@ gaps right 0
# Scratchpad:
#
# Move the currently focused window to the scratchpad
bindsym $mod+Shift+s move scratchpad
bindsym $mod+s scratchpad show
# special apps
bindsym $mod+z [class="^Rambox"] scratchpad show
bindsym $mod+c [class="^Signal"] scratchpad show
bindsym $mod+x [class="^Ferdi"] scratchpad show
bindsym $mod+Shift+s mark s; move scratchpad
bindsym $mod+Shift+z mark z; move scratchpad
bindsym $mod+Shift+x mark x; move scratchpad
bindsym $mod+Shift+c mark c; move scratchpad
bindsym $mod+s [con_mark="s"] scratchpad show
bindsym $mod+z [con_mark="z"] scratchpad show
bindsym $mod+x [con_mark="x"] scratchpad show
bindsym $mod+c [con_mark="c"] scratchpad show
#
# Resizing containers:
#
@ -207,6 +209,17 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
mode "move" {
bindsym $left move left 20px
bindsym $down move down 20px
bindsym $up move up 20px
bindsym $right move right 20px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+m mode "move"
#
# Window Rules:
#