Run command with Key Combination in Gnome
Is there a way in Ubuntu (22.04) to run a given bash command for a given Key combination in Gnome (42.9)? This Ubuntu is running in Hyper-V on a Win10 host.
(I would like to run the
setxkbmap us and
setxkbmap hu commands many times a day and finding the terminal and typing their aliases makes too much time. It would be even nicer if the same keyboard combination would do the two alternately, but I can do a Python script for that.)