Problem ------- I need to change between 2 xmodmap files on-the-fly. keycode 66 is my Caps_Lock button. In one xmodmap file I want to map that button to the 'win' button aka Super_L: [snip] clear Lock keycode 66 = Super_L [/snip] This works. Now I want a second xmodmap file which maps the real Caps_Lock button to Ctrl_L. But just changing the code from before won't work: [snip] clear Lock keycode 66 = Control_L [/snip] I think the problem is, that after executing the first file, there's no Lock anymore, which could be cleared by the second one, so it fails. Any idea what I could do here?