Closed ArtemSmaznov closed 2 years ago
That should be it, yes, although I do wonder where xK_Meta_R
and xK_Hyper_R
ran off to.
Cool thanks I will submit a PR then tomorrow after work.
I got these from xmodmap output and I think they are missing for me as I only have one super key. Will include those 2 as well
Right, that would do it. I used /usr/include/X11/keysymdef.h
which along with /usr/include/X11/XF86keysym.h
is the master list of defined KeySym
s.
Problem Description
additionalKeysP
does not allow setting Modifier Keys (Alt_L
,Alt_R
,Shift_L
, etc.) as KeySyms (i.e. setting keybindings with just modifier keys such asShift+Alt
for switching keyboard layouts)This approach works fine with
additionalKeys
by appendingxK_
like with all the other keys.Steps to Reproduce
additionalKeysP
:If you add this to
additionalKeys
though, the keybinding works just fine and spawns the script:Configuration File
Apologies for the incomplete config example. I am still very new to xmonad and having trouble understanding much of the config to be able to trim mine to a minimum working version.
Checklist
[X] I've read CONTRIBUTING.md
I tested my configuration
xmonad
version 0.15-153xmonad-contrib
version 0.16-133Notes
I do not know yet how to compile
xmonad-contrib
myself to test this but it looks to me that adding these tospecialKeys
inEZConfig.hs
is what is needed here (as well as to the commented out sections before that where, I assume, the documentation is built from).I am not sure if this might have any unforeseen consequences that I am not seeing. And once again I am only guessing that this is all that is required for this functionality.
If someone can confirm that this is indeed how this works and that this should be safe to update I am happy to submit a PR