i can retrieve the list of custom key bindings by:
gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings
which return something like:
['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/', '/org/gnome/settings-daemon/plugins/media keys/custom-keybindings/custom1/', '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/']
But i want to know target key binding via its name?
i.e. shutter
-> <primary><shift><alt>a
I've figured out one simple but not convenient approach:
gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-
keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-
keybindings/custom0/ name
// return the name like `shutter`
gsettings get org.gnome.settings-daemon.plugins.media-keys.custom-
keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-
keybindings/custom0/ binding
// return the binding like `<primary><shift><alt>a`
Does any guy know other elegant solutions?
python
turns out to be more straightforward and robust. Also, the question mentions no language preference :) – Jacob Vlijm Jul 01 '16 at 10:34IndexError: list index out of range.
I am assuming no such binding exists. If so, can somebody harden the script?
– kblmfld May 11 '18 at 18:11