aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ferdinand Bachmann <ferdinand.bachmann@yrlf.at>2024-04-05 16:40:28 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-05 16:40:28 +0200
commitbc258a3be2f946c1c93bcbe40735b2db068e0ea8 (patch)
tree80b7e6462f46d0f83fdd76fffd2c052b6b992564 /sway
parentsway-ipc(7): Escape backslashes correctly in GET_CONFIG output (diff)
downloadsway-bc258a3be2f946c1c93bcbe40735b2db068e0ea8.tar.gz
sway-bc258a3be2f946c1c93bcbe40735b2db068e0ea8.tar.zst
sway-bc258a3be2f946c1c93bcbe40735b2db068e0ea8.zip
input: add Super as alternative for Mod4
This PR implements alternative human-readable names for the logo key (Mod4) as proposed in #8084.
Diffstat (limited to 'sway')
-rw-r--r--sway/input/keyboard.c1
-rw-r--r--sway/sway.5.scd4
2 files changed, 3 insertions, 2 deletions
diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c
index b97f0152..f74d0658 100644
--- a/sway/input/keyboard.c
+++ b/sway/input/keyboard.c
@@ -32,6 +32,7 @@ static struct modifier_key {
32 { XKB_MOD_NAME_NUM, WLR_MODIFIER_MOD2 }, 32 { XKB_MOD_NAME_NUM, WLR_MODIFIER_MOD2 },
33 { "Mod3", WLR_MODIFIER_MOD3 }, 33 { "Mod3", WLR_MODIFIER_MOD3 },
34 { XKB_MOD_NAME_LOGO, WLR_MODIFIER_LOGO }, 34 { XKB_MOD_NAME_LOGO, WLR_MODIFIER_LOGO },
35 { "Super", WLR_MODIFIER_LOGO },
35 { "Mod5", WLR_MODIFIER_MOD5 }, 36 { "Mod5", WLR_MODIFIER_MOD5 },
36}; 37};
37 38
diff --git a/sway/sway.5.scd b/sway/sway.5.scd
index f73db3ba..9f823947 100644
--- a/sway/sway.5.scd
+++ b/sway/sway.5.scd
@@ -403,8 +403,8 @@ runtime.
403 For specifying modifier keys, you can use the XKB modifier names _Shift_, 403 For specifying modifier keys, you can use the XKB modifier names _Shift_,
404 _Lock_ (for Caps Lock), _Control_, _Mod1_ (for Alt), _Mod2_ (for Num Lock), 404 _Lock_ (for Caps Lock), _Control_, _Mod1_ (for Alt), _Mod2_ (for Num Lock),
405 _Mod3_ (for XKB modifier Mod3), _Mod4_ (for the Logo key), and _Mod5_ (for 405 _Mod3_ (for XKB modifier Mod3), _Mod4_ (for the Logo key), and _Mod5_ (for
406 AltGr). In addition, you can use the aliases _Ctrl_ (for Control) and _Alt_ 406 AltGr). In addition, you can use the aliases _Ctrl_ (for Control), _Alt_
407 (for Alt). 407 (for Alt), and _Super_ (for the Logo key).
408 408
409 Unless the flag _--locked_ is set, the command will not be run when a 409 Unless the flag _--locked_ is set, the command will not be run when a
410 screen locking program is active. If there is a matching binding with 410 screen locking program is active. If there is a matching binding with