I had a problem with Caps and I've got a script to fix this. Unfortunately, this script works until reboot:
# Fix caps
xkbcomp -xkb "$DISPLAY" - | sed 's#key <CAPS>.*#key <CAPS> {\
repeat=no,\
type[group1]="ALPHABETIC",\
symbols[group1]=[ Caps_Lock, Caps_Lock],\
actions[group1]=[ LockMods(modifiers=Lock),\
Private(type=3,data[0]=1,data[1]=3,data[2]=3)]\
};\
#' | xkbcomp -w 0 - "$DISPLAY"
exit 0
I would just add it into startup applications, but I'd like to run it on LightDM startup, or even at X11 start. Is there any way to run this script on X11 startup? I'm using Xubuntu 16.04.2.
Thanks.
[SeatDefaults]
section is deprecated (prints warning). Use[Seat:*]
in later versions of lightdm, used in Ubuntu 15.10 and later. Ref: https://wiki.ubuntu.com/LightDM#Configuration – Alex Jun 30 '18 at 08:13