You are not logged in.
I know that for setxkbmap it's possible to set the default layout by having it first in the -layout list, but there's a problem.
If any layout but US is the first, some applications misbehave. Specifically, for games under Proton that use the key below escape for opening console, nothing happens if the key is pressed.
Now, my solution so far is to do this:
setxkbmap -layout us,hr -model pc104 -option grp:alt_caps_toggle(If you're wondering, this fixes the invalid key issue for both layouts.)
The only problem with it is that every time the system is rebooted, the first layout in the list is used and has to be toggled back to my preferred layout (hr), which is what I want to automate instead (hence "setting specific layout from list", preferably as a command in .xinitrc). How do I do this?
Last edited by BorbingoBoy (2022-06-14 12:37:37)
Not a developer.
Represented as lightwo elsewhere.
Offline
xdotool key ISO_Next_GroupOffline
xdotool key ISO_Next_Group
Thank you for the suggestion. Weirdly though, all this ends up doing on my end is toggling caps instead of switching layouts.
Not a developer.
Represented as lightwo elsewhere.
Offline
Please post your xinitrc and on a limb: don't fork setxkbmap.
Offline