diff --git a/dot_config/sway/config b/dot_config/sway/config index 5e73840..1d3709d 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -67,10 +67,10 @@ mode "resize" { bindsym $up resize shrink height 10px bindsym $right resize grow width 10px # Ditto, with arrow keys - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px + bindsym $left_alt resize shrink width 10px + bindsym $down_alt resize grow height 10px + bindsym $up_alt resize shrink height 10px + bindsym $right_alt resize grow width 10px # Return to default mode bindsym Return mode "default" bindsym Escape mode "default" diff --git a/dot_config/sway/keybinding.conf b/dot_config/sway/keybinding.conf index 1e1c284..ace6352 100644 --- a/dot_config/sway/keybinding.conf +++ b/dot_config/sway/keybinding.conf @@ -39,20 +39,20 @@ bindsym $mod+$down focus down bindsym $mod+$up focus up bindsym $mod+$right focus right # Or use $mod+[up|down|left|right] -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right +bindsym $mod+$left_alt focus left +bindsym $mod+$down_alt focus down +bindsym $mod+$up_alt focus up +bindsym $mod+$right_alt 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 # Ditto, with arrow keys -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right +bindsym $mod+Shift+$left_alt move left +bindsym $mod+Shift+$down_alt move down +bindsym $mod+Shift+$up_alt move up +bindsym $mod+Shift+$right_alt move right # move workspace to left and right monitors bindsym $mod+Shift+bracketleft move workspace to output left bindsym $mod+Shift+bracketright move workspace to output right diff --git a/dot_config/sway/variables.conf b/dot_config/sway/variables.conf index 42545dd..ebad554 100644 --- a/dot_config/sway/variables.conf +++ b/dot_config/sway/variables.conf @@ -9,11 +9,17 @@ set $background $HOME/pictures/wallpapers/iceland.jpg ### Variables # Logo key. Use Mod1 for Alt. set $mod Mod4 -# Home row direction keys, like vim -set $left h -set $down j -set $up k -set $right l + +# Direction keys +set $left Left +set $down Down +set $up Up +set $right Right +# Alternative direction keys +set $left_alt h +set $down_alt j +set $up_alt k +set $right_alt l # Your preferred terminal emulator set $term $HOME/.config/sway/scripts/foot.sh