Exporting/Importing keyboard shortcuts in Linux Mint

Posted by Jose Estudillo on June 1, 2015

Exporting/Importing keyboard shortcuts in Linux Mint (Cinnamon)

To check the configuration of Linux Mint Cinnamon Edition we will need the command dconf, in case it isn’t be installed, use sudo apt-get install dconf-cli

See the current configuration

dconf dump /org/cinnamon/

This will show all the entries under /org/cinnamon/ which means not all the entries will be related the the keyboard shorcuts configuration, you can get specific entries using the complete path in dconf

Exporting the current configuration

dconf dump /org/cinnamon/ > keyboard-shortcuts-conf.txt

In my case, using Linux Mint 17, I get many entries, but in this case we will only need the followings:

[settings-daemon/plugins/media-keys]
terminal='<Super>t'
screensaver='<Super>l'
home='<Super>e'

[settings-daemon/peripherals/keyboard]
numlock-state='on'

[keybindings/custom-keybindings/custom0]
binding='<Super>w'
command='/usr/bin/google-chrome-stable %U'
name='Internet Browser'

[keybindings]
custom-list=['custom0']

[muffin/keybindings]
panel-run-dialog=['<Alt>F2', '<Super>r']
unmaximize=@as []
toggle-fullscreen=['F11', '<Super>f']
toggle-maximized=['<Super>m']
move-to-workspace-left=['<Shift><Super>Left']
move-to-workspace-right=['<Shift><Super>Right']

Importing a configuration form a file

Using the file generated in the previous process keyboard-shortcuts-conf.txt you can do the following

dconf load /org/cinnamon/ < keyboard-shortcuts-conf.txt