The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
1

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
0

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: https://wiki.archlinux.org/index.php/...keyboardlayoutwithhot-plugging

Another, uglier way, is to chain the i3lock invocation you possibly use for suspending: http://thread.gmane.org/gmane.comp.wi...

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 290 times

Last updated: Apr 29 '13