34 lines
994 B
Plaintext
34 lines
994 B
Plaintext
# resize window (you can also use the mouse for that)
|
|
mode "resize" {
|
|
# resize with arrow keys
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
# press p to enter precise resize mode
|
|
bindsym p mode "resize_precise"
|
|
|
|
# back to normal: Enter or Escape
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
mode "resize_precise" {
|
|
# resize with arrow keys
|
|
bindsym Left resize shrink width 1 px or 1 ppt
|
|
bindsym Down resize grow height 1 px or 1 ppt
|
|
bindsym Up resize shrink height 1 px or 1 ppt
|
|
bindsym Right resize grow width 1 px or 1 ppt
|
|
|
|
# go back to normal resize mode with p
|
|
bindsym p mode "resize"
|
|
|
|
# back to normal with Enter or Escape
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
# enter resize mode with r
|
|
bindsym $mod+r mode "resize"
|