You are not logged in.
when I run
setxkbmap -layout ru from within xephyr's openbox terminal, my keyboard layout changes.
when I add
setxkbmap -layout "us,ru" -option "grp:alt_shift_toggle" & to ~/.config/openbox/autostart (or to /etc/xdg/openbox) my keyboard layout does not change when Alt+Shift is pressed.
How can one get the keyboard layout to change with a shortcut?
Last edited by allhavebrainimplantsnmore (2020-12-19 09:59:10)
Offline
Ok, the only way I managed to achieve keyboard layout switching via a shortcut was by:
1) adding a keybinding to ~/.config/openbox/rc.xml that runs a custom script
2) custom script executes:
(setxkbmap -query | grep -q "layout:\s\+us") && setxkbmap ru || setxkbmap usHope this helps someone out one day.
Offline