Keyboard layouts nightmare continued

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
1 Like

Can’t you change it with qubesdb-write /keyboard-layout us+xxx+ ?

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.

1 Like

Hmmm… I also found this:

#!/usr/bin/sh

echo 'This program is deprecated; set qube property keyboard_layout instead.' >&2

exit 1

in qubes-change-keyboard-layout

Can we use this instead somehow? I would rather try this first if possible…

Also this:


#!/usr/bin/sh

qvm-features-request supported-feature.keyboard-layout=1

in 30-keyboard-layout-service.sh

This part is related to the keyboard_layout pref in dom0 qvm-prefs <qube> keyboard_layout. It’s based on a specific value layout as previously mentioned by @renehoj (qubes-core-admin-client/qubesadmin/tools/qvm_start_daemon.py at main · QubesOS/qubes-core-admin-client · GitHub). It’s not really easy to use, you might need to experiment a little bit with it.

It doesn’t seem to do anything when set manually using qvm-features via dom0. Could be wrong, I haven’t done any in-depth checks.

1 Like

Imagine even some Linux developer never introduced to Qubes, not to say average Windows user, looking at this topic.

This is all insane. There’s no other word.