I would like to set and retrieve the custom keyboard shortcuts via commandline. I've found out how to set and restore the normal standard shortcuts using gconftool-2 (and navigatable via gconf-editor). I've also seen that apparently custom keyboard shortcuts are stored in dconf, though I'm skeptical.
In attempting to use dconf to write and read the settings, it doesn't seem like the tool is updating the same setting. Can anyone help me find and update these custom keyboard shortcuts?
What I tried in dconf:
I set the shortcut:
dconf write '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0' "'<Primary><Alt>p'"
- I checked by opening up the unity dash, and going to 'keyboard' and 'keyboard shortcuts'. It didn't seem to be set.
Then I set my own shutcut on "custom0" to see if I used the wrong syntax. I set and cleared several times and called:
dconf read '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0'
- Even though other keyboard shortcuts are set, custom0 was the only one that returned values.
Context: I'm trying to swap between pianobar and banshee multi-media keys. I found out about pianobar ctl's socket used for sending keyboard shortcuts. I switch between sometimes and it's tedious to open up the keyboard shortcuts each time to update them. I've already figured out how to set the multimedia keys via:
gconftool-2 --set '/apps/gnome_settings_daemon/keybindings/play' --type 'string' '<Primary><Alt>p'
gconftool-2 --set '/apps/gnome_settings_daemon/keybindings/play' --type 'string' ''
Edit (2014-12-18):
I wonder if I'm going about this wrong. It doesn't seem like keyboard -> shortcuts has many commandline options.
CCSM also handles capturing keyboard shortcuts, is that at all configurable via commandline?
Note related, but not duplicate questions: