From 835267875856718c37dfe6963ecff4b8843cf665 Mon Sep 17 00:00:00 2001 From: Frsf Nrrg Date: Tue, 12 Jun 2018 19:48:38 +0000 Subject: [PATCH] More examples --- Shortcut-handling.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Shortcut-handling.md b/Shortcut-handling.md index 9e12920..4bc7612 100644 --- a/Shortcut-handling.md +++ b/Shortcut-handling.md @@ -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 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