You are not logged in.
I seem to be having some issues with xmodmap more specifically the config file for xmodmap.
I want to map Hyper_L to mod2 and Hyper_R to mod3
First, The output of xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x42), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)Seems simple enough, mod2 just needs cleared, before we can put new values into it, and we need to assign Hyper_L and Hyper_R to actual keycodes, I've chosen 78 (default Scroll lock) and 135 (the key that's right next to the right Super Key, I don't know what it's actually called but it's just another Super key right now)
According to This section of the Arch Wiki on xmodmap under Turn CapsLock into Control, and LeftControl into Hyper we should be able to put this in our Xmodmap config file, and it be syntaxically correct
Config file:
!Map Hyper L to Mod2 and Hyper R to Mod 3
keycode 78 = Hyper_R NoSymbol Hyper_R
keycode 135 = Hyper_L NoSymbol Hyper_L
clear mod2
add mod2 = Hyper_L
add mod3 = Hyper_REverything seems good and well until I run xmodmap /dir/to/config where I get this error
$ xmodmap ~/.config/Xmodmap
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 118 (X_SetModifierMapping)
Value in failed request: 0x17
Serial number of failed request: 14
Current serial number in output stream: 14If I remove the last two lines of the config file where I add Hyper_L and Hyper_R to their respective mod keys, I get no errors, so those are the problematic lines in the config file (probably)
I'm unsure how to proceed, I'm probably just misunderstanding how keymapping works in some reguard or another.
Offline