I often press alt+F2
or Super+R
to quickly run something. I know where to edit keybindings, so I can add an extra-action (a command to execute) to those hotkeys. Action that I want to add is switch-to-english-layout action. Here's my localectl status
output, if something else can help you, request it in comments.
System Locale: LANG=ru_RU.UTF-8
VC Keymap: n/a
X11 Layout: us,ru
X11 Model: pc105
X11 Variant: ,
X11 Options: grp:alt_shift_toggle,grp_led:scroll
UPD: I have no ibus installed and I hope it's not neccessary to invoke this buggy piece of crap just to switch the layouts