[UPDATE][I3] Factorize Vim-like key definitions
This commit is contained in:
parent
b1e415594d
commit
a649c4cad9
|
@ -43,11 +43,17 @@ bindsym $mod+d exec --no-startup-id rofi -show drun -disable-history
|
||||||
# Launch bwmenu (a bitwarden integration with rofi)
|
# Launch bwmenu (a bitwarden integration with rofi)
|
||||||
bindsym $mod+p exec --no-startup-id bwmenu
|
bindsym $mod+p exec --no-startup-id bwmenu
|
||||||
|
|
||||||
|
# Define vim-like movement keys
|
||||||
|
set $left h
|
||||||
|
set $down j
|
||||||
|
set $up k
|
||||||
|
set $right l
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+$left focus left
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+$down focus down
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+$up focus up
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+$right focus right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Left focus left
|
bindsym $mod+Left focus left
|
||||||
|
@ -56,15 +62,15 @@ bindsym $mod+Up focus up
|
||||||
bindsym $mod+Right focus right
|
bindsym $mod+Right focus right
|
||||||
|
|
||||||
# move focused window
|
# move focused window
|
||||||
bindsym $mod+Shift+h move left 10 px
|
bindsym $mod+Shift+$left move left 10 px
|
||||||
bindsym $mod+Shift+j move down 10 px
|
bindsym $mod+Shift+$down move down 10 px
|
||||||
bindsym $mod+Shift+k move up 10 px
|
bindsym $mod+Shift+$up move up 10 px
|
||||||
bindsym $mod+Shift+l move right 10 px
|
bindsym $mod+Shift+$right move right 10 px
|
||||||
# Use shift+ctrl to move by 50 px
|
# Use shift+ctrl to move by 50 px
|
||||||
bindsym $mod+Control+Shift+h move left 50 px
|
bindsym $mod+Control+Shift+$left move left 50 px
|
||||||
bindsym $mod+Control+Shift+j move down 50 px
|
bindsym $mod+Control+Shift+$down move down 50 px
|
||||||
bindsym $mod+Control+Shift+k move up 50 px
|
bindsym $mod+Control+Shift+$up move up 50 px
|
||||||
bindsym $mod+Control+Shift+l move right 50 px
|
bindsym $mod+Control+Shift+$right move right 50 px
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Shift+Left move left 10 px
|
bindsym $mod+Shift+Left move left 10 px
|
||||||
|
@ -156,22 +162,22 @@ mode "resize" {
|
||||||
# Using ctrl will resize by 50 px or ppt
|
# Using ctrl will resize by 50 px or ppt
|
||||||
# Using shift will resize by 100 px or ppt
|
# Using shift will resize by 100 px or ppt
|
||||||
# Using shift+ctrl will resize by 250 px or ppt
|
# Using shift+ctrl will resize by 250 px or ppt
|
||||||
bindsym h resize shrink width 10 px or 10 ppt
|
bindsym $left resize shrink width 10 px or 10 ppt
|
||||||
bindsym j resize grow height 10 px or 10 ppt
|
bindsym $down resize grow height 10 px or 10 ppt
|
||||||
bindsym k resize shrink height 10 px or 10 ppt
|
bindsym $up resize shrink height 10 px or 10 ppt
|
||||||
bindsym l resize grow width 10 px or 10 ppt
|
bindsym $right resize grow width 10 px or 10 ppt
|
||||||
bindsym Control+h resize shrink width 50 px or 50 ppt
|
bindsym Control+$left resize shrink width 50 px or 50 ppt
|
||||||
bindsym Control+j resize grow height 50 px or 50 ppt
|
bindsym Control+$down resize grow height 50 px or 50 ppt
|
||||||
bindsym Control+k resize shrink height 50 px or 50 ppt
|
bindsym Control+$up resize shrink height 50 px or 50 ppt
|
||||||
bindsym Control+l resize grow width 50 px or 50 ppt
|
bindsym Control+$right resize grow width 50 px or 50 ppt
|
||||||
bindsym Shift+h resize shrink width 100 px or 100 ppt
|
bindsym Shift+$left resize shrink width 100 px or 100 ppt
|
||||||
bindsym Shift+j resize grow height 100 px or 100 ppt
|
bindsym Shift+$down resize grow height 100 px or 100 ppt
|
||||||
bindsym Shift+k resize shrink height 100 px or 100 ppt
|
bindsym Shift+$up resize shrink height 100 px or 100 ppt
|
||||||
bindsym Shift+l resize grow width 100 px or 100 ppt
|
bindsym Shift+$right resize grow width 100 px or 100 ppt
|
||||||
bindsym Control+Shift+h resize shrink width 250 px or 250 ppt
|
bindsym Control+Shift+$left resize shrink width 250 px or 250 ppt
|
||||||
bindsym Control+Shift+j resize grow height 250 px or 250 ppt
|
bindsym Control+Shift+$down resize grow height 250 px or 250 ppt
|
||||||
bindsym Control+Shift+k resize shrink height 250 px or 250 ppt
|
bindsym Control+Shift+$up resize shrink height 250 px or 250 ppt
|
||||||
bindsym Control+Shift+l resize grow width 250 px or 250 ppt
|
bindsym Control+Shift+$right resize grow width 250 px or 250 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
|
||||||
|
|
Loading…
Reference in a new issue