direction / alternative direction

This commit is contained in:
Joachim Nielandt 2023-05-18 11:16:41 +02:00
parent 1f3ac280d0
commit 258d6f2c4d
3 changed files with 23 additions and 17 deletions

View File

@ -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"

View File

@ -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

View File

@ -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