desktop-playbook/group_vars/all/keybindings.yml

110 lines
3 KiB
YAML

---
sway_keybindings:
- mode: 'normal'
bindings:
- bindsym: '$mod+Return'
action: 'exec $term'
- bindsym: '$mod+Shift+q'
action: 'kill'
- bindsym: '$mod+d'
action: 'exec $menu'
- bindsym: '$mod+Shift+c'
action: 'reload'
- bindsym: '$mod+Shift+e'
action: >-
exec swaynag -t warning -m "You pressed the exit shortcut. \
Do you really want to exit sway? \
This will end your Wayland session." \
-B "Yes, exit sway" "swaymsg exit"
# Focus
- bindsym: '$mod+$left'
action: 'focus left'
- bindsym: '$mod+$down'
action: 'focus down'
- bindsym: '$mod+$up'
action: 'focus up'
- bindsym: '$mod+$right'
action: 'focus right'
# Use regular direction bindsym
- bindsym: '$mod+Left'
action: 'focus left'
- bindsym: '$mod+Down'
action: 'focus down'
- bindsym: '$mod+Up'
action: 'focus up'
- bindsym: '$mod+Right'
action: 'focus right'
# move the focused window with the same, but add Shift
- bindsym: '$mod+Shift+$left'
action: 'move left'
- bindsym: '$mod+Shift+$down'
action: 'move down'
- bindsym: '$mod+Shift+$up'
action: 'move up'
- bindsym: '$mod+Shift+$right'
action: 'move right'
- bindsym: '$mod+Shift+Left'
action: 'move left'
- bindsym: '$mod+Shift+Down'
action: 'move down'
- bindsym: '$mod+Shift+Up'
action: 'move up'
- bindsym: '$mod+Shift+Right'
action: 'move right'
# split
- bindsym: '$mod+b'
action: 'splith'
- bindsym: '$mod+v'
action: 'splitv'
# layout
- bindsym: '$mod+s'
action: 'layout stacking'
- bindsym: '$mod+w'
action: 'layout tabbed'
- bindsym: '$mod+e'
action: layout toggle split
# Fullscreen
- bindsym: '$mod+f'
action: 'fullscreen'
# Toggle floating mode
- bindsym: '$mod+Shift+space'
action: 'floating toggle'
# Swap focus between the tiling area and the floating area
- bindsym: '$mod+space'
action: 'focus mode_toggle'
# move focus to the parent container
- bindsym: '$mod+a'
action: 'focus parent'
# Scratchpad
- bindsym: '$mod+Shift+p'
action: 'move scratchpad'
- bindsym: '$mod+p'
action: 'scratchpad show'
# Mode resize
- bindsym: '$mod+r'
action: 'mode "resize"'
- mode: 'resize'
bindings:
- bindsym: '$left'
action: 'resize shrink width 10 px or 10 ppt'
- bindsym: '$down'
action: 'resize grow height 10 px or 10 ppt'
- bindsym: '$up'
action: 'resize shrink height 10 px or 10 ppt'
- bindsym: '$right'
action: 'resize grow width 10 px or 10 ppt'
- bindsym: 'Return'
action: 'mode "default"'
- bindsym: Escape
action: 'mode "default"'