Checkmateing n00b
Joined: 24 Jan 2018 Posts: 5
|
Posted: Wed Apr 18, 2018 9:02 am Post subject: xmodmap can't do anything |
|
|
Hi!
I'm using the NEOv2 keyboard layout. In order to improve ergonomics, I want to use a different key as Control key. For that I thought of the space, since it can be pressed with thumbs. In order to do that I run the following script on X's startup: (using .xinit)
Code: | #!/bin/sh
setxkbmap de neo
spare_modifier="Hyper_L"
xmodmap -e "keycode 65 = $spare_modifier"
xmodmap -e "remove mod4 = $spare_modifier" # hyper_l is mod4 by default
xmodmap -e "add Control = $spare_modifier"
xmodmap -e "keycode any = space"
xcape -t 250 -e "$spare_modifier=space"
|
Running this manually, we get nice error messages. I think it's because Hyper_L is unused in this keyboard layout. Trying to add it doesn't yield to success.
Code: | λ ~/ xmodmap -e "add Mod4=Hyper_L"
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: 8
Current serial number in output stream: 8
|
Now I thought "Ok, clear it first", but this works neither, same error message.
Any suggestions on how to add it or anything?
Regards,
[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu] |
|