The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Xmodmap loading

asked 2012-09-26 20:15:43 +0000

lzap gravatar image

updated 2012-09-26 20:25:29 +0000

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

edit retag flag offensive close merge delete

Comments

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).

Michael gravatar imageMichael ( 2012-09-27 17:23:55 +0000 )edit

Yeah, second time works. Strange.

lzap gravatar imagelzap ( 2013-03-07 21:33:11 +0000 )edit

I try to load twice in the autostart - still does not work for me. The only way it works is from terminal. :-(

lzap gravatar imagelzap ( 2013-05-05 19:24:07 +0000 )edit

weird, this started to happen with me after I added another keyboard via gnome settings...

bruno.braga gravatar imagebruno.braga ( 2013-06-11 10:29:46 +0000 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2013-10-09 15:32:03 +0000

Flugsio gravatar image

change the line

remove Lock = Caps_Lock

to

clear Lock
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2012-09-26 20:15:43 +0000

Seen: 1,559 times

Last updated: Oct 09 '13