i3: add bindings to move floating windows

This commit is contained in:
Gabriel Ebner 2017-06-29 13:27:08 +02:00
parent c22dfe482e
commit eebc2818cc

@ -78,10 +78,10 @@ mode "resize" {
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
@ -93,9 +93,26 @@ mode "resize" {
bindsym Return mode "default"
bindsym Escape mode "default"
}
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"])])
include([base16.m4])