Change keybindings to vim-like

This commit is contained in:
2021-09-16 22:21:56 +03:00
parent 86f8320ae0
commit 2a5db9a8e1

View File

@@ -14,6 +14,11 @@ set $ws8 "8"
set $ws9 "9" set $ws9 "9"
set $ws10 "10" set $ws10 "10"
set $left "h"
set $right "l"
set $up "k"
set $down "j"
# Autostart applications # Autostart applications
exec --no-startup-id nitrogen --restore exec --no-startup-id nitrogen --restore
exec_always --no-startup-id $HOME/.config/polybar/launch.sh exec_always --no-startup-id $HOME/.config/polybar/launch.sh
@@ -70,10 +75,10 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show run bindsym $mod+d exec --no-startup-id rofi -show run
# change focus # change focus
bindsym $mod+j focus left bindsym $mod+$left focus left
bindsym $mod+k focus down bindsym $mod+$down focus down
bindsym $mod+l focus up bindsym $mod+$up focus up
bindsym $mod+semicolon 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
@@ -82,10 +87,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
# move focused window # move focused window
bindsym $mod+Shift+j move left bindsym $mod+Shift+$left move left
bindsym $mod+Shift+k move down bindsym $mod+Shift+$down move down
bindsym $mod+Shift+l move up bindsym $mod+Shift+$up move up
bindsym $mod+Shift+semicolon move right bindsym $mod+Shift+$right move right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
@@ -94,7 +99,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# split in horizontal orientation # split in horizontal orientation
bindsym $mod+h split h bindsym $mod+g split h
# split in vertical orientation # split in vertical orientation
bindsym $mod+v split v bindsym $mod+v split v
@@ -159,10 +164,10 @@ mode "resize" {
# Pressing right will grow the windows width. # Pressing right will grow the windows width.
# Pressing up will shrink the windows height. # Pressing up will shrink the windows height.
# Pressing down will grow the windows height. # Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt bindsym $left resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt bindsym $up resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt bindsym $down resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt bindsym $right 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