i3: add bindings to move floating windows
This commit is contained in:
parent
c22dfe482e
commit
eebc2818cc
27
i3/config.m4
27
i3/config.m4
@ -78,10 +78,10 @@ mode "resize" {
|
|||||||
# Pressing right will grow the window’s width.
|
# Pressing right will grow the window’s width.
|
||||||
# Pressing up will shrink the window’s height.
|
# Pressing up will shrink the window’s height.
|
||||||
# Pressing down will grow the window’s height.
|
# Pressing down will grow the window’s height.
|
||||||
bindsym j resize shrink width 10 px or 10 ppt
|
bindsym h resize shrink width 10 px or 10 ppt
|
||||||
bindsym k resize grow height 10 px or 10 ppt
|
bindsym j resize grow height 10 px or 10 ppt
|
||||||
bindsym l resize shrink height 10 px or 10 ppt
|
bindsym k resize shrink height 10 px or 10 ppt
|
||||||
bindsym semicolon resize grow width 10 px or 10 ppt
|
bindsym l resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
# same bindings, but for the arrow keys
|
# same bindings, but for the arrow keys
|
||||||
bindsym Left resize shrink width 10 px or 10 ppt
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
@ -93,9 +93,26 @@ mode "resize" {
|
|||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
|
mode "moveit" {
|
||||||
|
bindsym h move left 10 px
|
||||||
|
bindsym j move down 10 px
|
||||||
|
bindsym k move up 10 px
|
||||||
|
bindsym l move right 10 px
|
||||||
|
|
||||||
|
# same bindings, but for the arrow keys
|
||||||
|
bindsym Left move left 10 px
|
||||||
|
bindsym Down move down 10 px
|
||||||
|
bindsym Up move up 10 px
|
||||||
|
bindsym Right move right 10 px
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
bindsym $mod+m mode "moveit"
|
||||||
|
|
||||||
define([defcolor], [define(base$1, ["[#]$2"])])
|
define([defcolor], [define(base$1, ["[#]$2"])])
|
||||||
include([base16.m4])
|
include([base16.m4])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user