alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

Handle Keyboard layout changes #77

Open girst opened 7 years ago

girst commented 7 years ago

When xcape gets run before the keyboard layout is set (e.g. autostart) or the user switches between layouts, xcape sends out the wrong keycodes.

Right now, as a workaround, I use

bash -c 'sleep 5 && xcape -e "Control_L=Escape;Shift_R=slash"'

Thanks, Tobias

sionleroux commented 7 years ago

I may be experiencing something similar. Xcape works fine on my laptop. I connect my bluetooth keyboard and it continues to work fine for that keyboard. Then I disconnect it and Xcape seems to either have no effect, or only if I hit the control key several times... not sure if consistent.