mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 09:21:28 +00:00
More examples
parent
4a440c8d31
commit
8352678758
|
@ -26,14 +26,20 @@ xkb keycodes are typically `scancode + 8`.
|
|||
|
||||
### Examples
|
||||
|
||||
# These two shortcuts are equivalent
|
||||
# These two shortcuts are equivalent for US keyboards
|
||||
bindsym Ctrl+Shift+1 restart
|
||||
bindsym Ctrl+exclam restart
|
||||
|
||||
# As are these
|
||||
# As are these. Exits, e.g. when Control_L, P and Q are pressed simultaneously
|
||||
bindsym Ctrl+q+p exit
|
||||
bindsym Ctrl+p+q exit
|
||||
|
||||
# These two shortcuts are identical thanks to case insensitivity
|
||||
bindsym Mod5+R reload
|
||||
bindsym Mod5+r reload
|
||||
# This shortcut requires Shift to be held
|
||||
bindsym Mod5+Shift+R reload
|
||||
|
||||
# When the <ESC> key is pressed, switch to workspace "F"
|
||||
bindcode 9 workspace F
|
||||
|
||||
|
@ -44,6 +50,10 @@ xkb keycodes are typically `scancode + 8`.
|
|||
# through G, 1 through 5 are pressed simultaneously, exit
|
||||
bindsym Mod5+Mod4+Mod3+Mod2+Mod1+Shift+Ctrl+a+b+c+d+e+f+g+1+2+3+4+5 exit
|
||||
|
||||
# Dead key and compose key transformations are ignored
|
||||
bindsym Ctrl+dead_acute+e exec false
|
||||
bindsym Alt+Multi_key+1+2 exec false
|
||||
|
||||
### Caveats
|
||||
|
||||
Pressing multiple keys which would result in the same modifier change if pressed alone
|
||||
|
|
Loading…
Reference in a new issue