Not to say that I can’t get a variant of additional language to make work, I can’t even make a simple command related to keyboard layout to be executed on each start up in my fedora-40-minimal… I put even AI in the loop with this…
For example this:
It works perfectly manually executed in terminal until sh(i)tdown, though only in non-variant language (only as xxx and no yyyy no matter what I tried regarding this even trying to create a custom keymap), as I said in intro…
I tried everything: autostart, service, you name it I tried it…
Jesus Christ, like basic fundamental computer option not working for more than a decade… (it feels like at least, cause I read that it worked under 4.0, but I didn’t want to use it until more secure environment established with 4.1)
I did a some research on this, it doesn’t work because it always checks for the value in qubesdb /keyboard-layout. If you try to set it persistently, it will always be overwritten.
Not sure if this is what you want, but you can get rid of the script that is always listening and then use the setxkbmap command like this:
#/rw/config/rc.local
while true
do
process=$(pgrep qubes-keymap.sh)
if [ -n "$process" ]; then
kill -1 "$process"
setxkbmap -display :0 -layout "us,xxx" -model pc105 -option "grp:win_space_toggle"
break
fi
sleep 0.5
done
I experimented with this command too while doing my tests, but it can be difficult to know exactly what to put there if options are needed, while using setxkbmap is easier to understand and to apply. That’s why I ended up with this script instead.