Xmodmap loading
Hello,
I have a script that I run in i3 config using exec. And in this script I load Xmodmap:
xmodmap ~/.Xmodmap &
The content is
keycode 166 = Prior
keycode 167 = Next
remove Lock = Caps_Lock
keysym Caps_Lock = apostrophe
But it is not working, this is what I have in .xsession-errors:
xmodmap: /home/lzap/.Xmodmap:3: bad keysym in remove modifier list 'Caps_Lock', no corresponding keycodes
xmodmap: /home/lzap/.Xmodmap:4: bad keysym target keysym 'Caps_Lock', no corresponding keycodes
xmodmap: 2 errors encountered, aborting.
The strange thing is when I try to execute xmodmap ~/.Xmodmap in a rxvt terminal once i3 is running, there are no errors reported and it is finally working. What can be wrong during the start? Thanks
I’m not too sure if that really is the answer, but try removing it from your i3 config and run it in a terminal. Does it still fail? Some xmodmap files need to be run twice (they can be rewritten to work on the first try, though).
Yeah, second time works. Strange.
I try to load twice in the autostart - still does not work for me. The only way it works is from terminal. :-(
weird, this started to happen with me after I added another keyboard via gnome settings...