#Caps lock not toggling in xorg

4 messages · Page 1 of 1 (latest)

crystal widget
#

When I press caps lock, it goes back into normal letters after a second. Like OOOOoooooo, reverts back. Or if I swap with escape, escape presses twice which can be annoying when using vim.
I am using xorg dwm

#

Caps lock not toggling in xorg

#

contents of xev

KeyPress event, serial 33, synthetic NO, window 0x1a00001,
    root 0x2ed, subw 0x0, time 7475561, (677,725), root:(680,749),
    state 0x10, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1a00001,
    root 0x2ed, subw 0x0, time 7475657, (677,725), root:(680,749),
    state 0x12, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x1a00001,
    root 0x2ed, subw 0x0, time 7477561, (677,725), root:(680,749),
    state 0x12, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x1a00001,
    root 0x2ed, subw 0x0, time 7477561, (677,725), root:(680,749),
    state 0x12, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
#
#!/bin/sh

xset r rate 180 90
setxkbmap gb

setxkbmap -option

I run this at startup to set my keys right now, but usually it would look like this

#!/bin/sh

xset r rate 180 90
setxkbmap gb

setxkbmap -option caps:swapescape