Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 6018  / 2 Years ago, mon, january 17, 2022, 8:49:29

Since 14.04 default keyboard switch key is Super+Space



I preparing sample system for clone on hundreds of pc's and want to assign another default keys to switch layout with command line.



I cannot find where this setting is defined in 14.04.



I search /etc, dconf, gconf but cannot find any appropriate configuration in fresh install of Ubuntu 14.04.



Also I want to manage this setting with chef for supporting idempotent configuration in future. So I need to know where it's stored.



Help me to find where it's stored.


More From » unity

 Answers
2

You can change this setting by going to System Settings -> Keyboard, then go to the Shortcuts tab and choose Typing on the left. The setting you're looking for is Switch to next source.



Changing the keyboard layout switch hotkey in Ubuntu



This setting is stored by GSettings. I think these settings are stored in ~/.config/dconf/user, but this is a database file managed by some applications and I would not touch it. Better to use dconf to change the setting if you would like to do it via the command line.



You can use dconf watch / to see settings that are being changed while you change Ubuntu's system settings via the GUI. E.g., if I run this command, then change the keyboard switcher to Super+Tab via the GUI, that command outputs:



/org/gnome/desktop/wm/keybindings/switch-input-source
['<Super>Tab']


So, you could change this switch to Super+Tab (as an example) via the command line by issuing the command



dconf write /org/gnome/desktop/wm/keybindings/switch-input-source "['<Super>Tab']"

[#23932] Tuesday, January 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmiend

Total Points: 292
Total Questions: 101
Total Answers: 111

Location: Azerbaijan
Member since Tue, Aug 9, 2022
2 Years ago
rmiend questions
Tue, Jan 18, 22, 23:52, 2 Years ago
Sat, Sep 17, 22, 15:44, 2 Years ago
;