Sample Header Ad - 728x90

setxkbmap and xmodmap often stop working

1 vote
1 answer
100 views
I have a script to: 1. Set the keyboard layout to include accents 2. Set capslock as mod when held 3. Set capslock as escape when pressed It looks like this: setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl & sleep 1 xmodmap ~/.Xmodmap & sleep 1 killall -q xcape & xcape -e "Hyper_L=Escape" & Those sleep are there because otherwise it doesn't work well. I don't understand why and I'd love to. In addition to that, sometimes the escape part of it just stops working, and I have to relaunch the script. I'm not exactly sure what triggers this but it is annoying.
Asked by indeedwatson (13 rep)
Jun 4, 2023, 01:34 PM
Last activity: Jun 4, 2023, 06:08 PM