Skip to content

Commit bc258a3

Browse files
authored
input: add Super as alternative for Mod4
This PR implements alternative human-readable names for the logo key (Mod4) as proposed in #8084.
1 parent dcb142b commit bc258a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sway/input/keyboard.c

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static struct modifier_key {
3232
{ XKB_MOD_NAME_NUM, WLR_MODIFIER_MOD2 },
3333
{ "Mod3", WLR_MODIFIER_MOD3 },
3434
{ XKB_MOD_NAME_LOGO, WLR_MODIFIER_LOGO },
35+
{ "Super", WLR_MODIFIER_LOGO },
3536
{ "Mod5", WLR_MODIFIER_MOD5 },
3637
};
3738

sway/sway.5.scd

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ runtime.
403403
For specifying modifier keys, you can use the XKB modifier names _Shift_,
404404
_Lock_ (for Caps Lock), _Control_, _Mod1_ (for Alt), _Mod2_ (for Num Lock),
405405
_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_
407-
(for Alt).
406+
AltGr). In addition, you can use the aliases _Ctrl_ (for Control), _Alt_
407+
(for Alt), and _Super_ (for the Logo key).
408408

409409
Unless the flag _--locked_ is set, the command will not be run when a
410410
screen locking program is active. If there is a matching binding with

0 commit comments

Comments
 (0)