The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Custom keymap reset after resume

asked 2013-04-29 17:15:33 +0000

0x000000 gravatar image

I know this doesn't have much to do with i3 itself, but I'm just wondering if anyone has encountered the same problem. I have my Ctrl and Caps Lock keys swapped using xmodmap. xmodmap is run when i3 starts. After I resume from suspend, they are swapped back and I have to run xmodmap again. Is there any way to fix this without a system-level resume hook?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-29 17:36:10 +0000

Michael gravatar image

My suspicion on why that happens is that your keyboard gets disconnected for a short amount of time and gets recognized as a new device.

One way to work around this effect is to configure your keyboard layout in Xorg.conf, not via Xmodmap:

Another, uglier way, is to chain the i3lock invocation you possibly use for suspending:

edit flag offensive delete link more

Question Tools


Asked: 2013-04-29 17:15:33 +0000

Seen: 290 times

Last updated: Apr 29 '13