From 32b1a21ed2badcaf8fa8c30a71e72b9edc817b19 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 9 Aug 2022 00:01:21 +0300 Subject: [PATCH] config/sway: add vi keys as alternative --- .config/sway/config.d/resize.conf | 16 ++++++++++++++++ .config/sway/definitions.d/modifiers.conf | 5 ----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.config/sway/config.d/resize.conf b/.config/sway/config.d/resize.conf index 20dd99a..cea37f8 100644 --- a/.config/sway/config.d/resize.conf +++ b/.config/sway/config.d/resize.conf @@ -1,3 +1,8 @@ +set $left h +set $down j +set $up k +set $right l + ## Resize in normal mode with vim keys $bindsym $mod+Ctrl+Shift+$left resize shrink width 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+Up resize shrink height 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 diff --git a/.config/sway/definitions.d/modifiers.conf b/.config/sway/definitions.d/modifiers.conf index bbede12..e7ec18c 100644 --- a/.config/sway/definitions.d/modifiers.conf +++ b/.config/sway/definitions.d/modifiers.conf @@ -1,6 +1 @@ set $term kitty - -set $left h -set $down j -set $up k -set $right l