config/sway: add vi keys as alternative

This commit is contained in:
xeruf 2022-08-09 00:01:21 +03:00
parent 575199e3e7
commit 32b1a21ed2
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,8 @@
set $left h
set $down j
set $up k
set $right l
## Resize in normal mode with vim keys ## Resize in normal mode with vim keys
$bindsym $mod+Ctrl+Shift+$left resize shrink width 20px $bindsym $mod+Ctrl+Shift+$left resize shrink width 20px
$bindsym $mod+Ctrl+Shift+$down resize grow height 20px $bindsym $mod+Ctrl+Shift+$down resize grow height 20px
@ -8,3 +13,14 @@ $bindsym $mod+Ctrl+Shift+Left resize shrink width 20px
$bindsym $mod+Ctrl+Shift+Down resize grow height 20px $bindsym $mod+Ctrl+Shift+Down resize grow height 20px
$bindsym $mod+Ctrl+Shift+Up resize shrink height 20px $bindsym $mod+Ctrl+Shift+Up resize shrink height 20px
$bindsym $mod+Ctrl+Shift+Right resize grow width 20px $bindsym $mod+Ctrl+Shift+Right resize grow width 20px
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right

View File

@ -1,6 +1 @@
set $term kitty set $term kitty
set $left h
set $down j
set $up k
set $right l