You are not logged in.
Pages: 1
Hello, I've been using an Xmodmap config that turns hjkl keys on your keyboards into the arrow keys when CapsLock is pressed down (I found it here). Here's what it looks like:
!remove Caps Lock
clear lock
remove Lock = Caps_Lock
remove Shift = Caps_Lock
!add Mode_switch
keycode 66 = NoSymbol NoSymbol
keycode 66 = Mode_switch
!vim-like and other custom keybindings
keysym h = h H Left NoSymbol NoSymbol NoSymbol
keysym j = j J Down NoSymbol NoSymbol NoSymbol
keysym k = k K Up NoSymbol NoSymbol NoSymbol
keysym l = l L Right NoSymbol lstroke Lstroke
keysym q = q Q Escape NoSymbol NoSymbol NoSymbol
I also added q as Escape, this config works without issues, but the thing is my left control is broken so I'm trying to make it so when I press down on CapsLock left Alt becomes Control, but I cannot seem to be able to do that, I have tried adding this to the end of the config:
!add CapsLock+Alt as Control
clear Mod1
clear control
add Mod1 = Control_L Control_R
add control = Control_L Control_R
It did not work, it shows this error:
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: 20
Current serial number in output stream: 20
I have also made some other small adjustments to it, but they did not work either. Some help would be greatly appreciated
Offline
Pages: 1