Major opcode of failed request: 118 (X_SetModifierMapping)
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: 23
Current serial number in output stream: 23
The code follows
!! ======================================================================
!! Using the Hyper Key in place of the Super Key
clear lock
clear mod4
keycode 37 = Hyper_L NoSymbol Hyper_L NoSymbol
keycode 105 = Hyper_R NoSymbol Hyper_R NoSymbol
!! Set Super Keys to Position of Caps_Lock
keycode 66 = Super_R NoSymbol Super_R NoSymbol
add mod3 = Super_L Super_R
add mod4 = Hyper_L
!! ======================================================================
!! Interchanging the Ctrl Key with the Alt Key and Meta Key
clear control
clear mod1
clear mod2
keycode 64 = Control_L NoSymbol Control_L NoSymbol
keycode 108 = Control_R NoSymbol Control_R NoSymbol
keycode 133 = Alt_L Meta_L Alt_L Meta_L
keycode 134 = Alt_R Meta_R Alt_R Meta_R
keycode 206 = NoSymbol Hyper_L NoSymbol Hyper_L
keycode 207 = NoSymbol Super_L NoSymbol Super_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L