Alternating 2 keyboard layouts with Key Combination
Sorry it was a typo, _ instead of -, that caused the problem.
I want to have a key combination to alter the keymaps. It worked with one for us and one for hu, but now I want to use one key combination to alternate them.
I have this script:
CURRENT=`/home/ha/bin/xkblayout-state print "%s"` case $CURRENT in us) setxkbmap hu ;; hu) setxkbmap us ;; esac
I've installed xkblayout-state from source.
Works properly from command line:
$ change-xkbmap.sh $ #;;'' $ change-xkbmap.sh $ #ééáá
But when I set the key combination, it doesn't work.
I have used the same key combination for
setxkbmap hu and it worked.
If it's possible, I would use
Super+Space, but it's worse. It also prints a space.
Ubuntu 22.04 in Hyper-V, Gnome 42.9
Before you write that I can switch without scripts. Yes I know, but it stops working after some time (after some suspend of the host Win10) in Hyper-V.
UPDATE 1: The permission is
-rwxrwxr-x so the problem is not that.
UPDATE 2: There was a typo in the script's full path. It works well now with
Alt-Shift-H or with
Super-X but not with
Super+Space nor with