0

Using Ubuntu 22.04 with Cinnamon.

I want to configure separate shortcut-keys (for each keyboard layout) to switch the keyboard layout of the current window.

I use the gsettings or system-settings to configure my keyboard layouts.

  • switch keyboard layout for each window separately
  • and cycle with shortcut key ctrl_left+ctrl_right.
gsettings set org.gnome.libgnomekbd.keyboard layouts "['us', 'il', 'br', 'gr']"
gsettings set org.gnome.libgnomekbd.keyboard options "['grp\tgrp:ctrls_toggle']"
gsettings set org.gnome.libgnomekbd.desktop group-per-window true

But there isn't an option to configure a separate shortcut key for each layout, instead of cycling (still changing only the current window).

e.g.

Super+Shift+1 == switch current window to 'en' 
Super+Shift+2 == switch current window to 'il' 
Super+Shift+3 == switch current window to 'br' 
Super+Shift+4 == switch current window to 'gr' 

Is there any available settings/program/script to set such custom shortcut-keys?

I do not need to be able to switch all windows together. I only wish to be able to switch the current window.

Please note that questions/answers like the following does not solve my problem, becuase it only works to change the layout for all windows. I want to change only current window. Separate keyboard shortcuts for switching between keyboard layouts

itaj
  • 11

0 Answers0