Sometimes there are shortcut key that I cannot see in settings (e.g., emoji key, or app overview, normally bound to ). So I've been looking for a way to list all shortcut keys. gsettings seems to have most, but e.g. dash-to-panel only uses dconf. I'm posting my own answer below, but perhaps somebody knows a more comprehensive answer?
Asked
Active
Viewed 1,063 times
2 Answers
2
For gsettings this works too:
gsettings list-schemas | while read schema; do gsettings list-recursively $schema; done;
Lol, scratch that, this works identical by omitting the schema name ;-)
gsettings list-recursively
For completion, key bindings are often grouped by the word keybindings in the gsettings name, so you could grep by this:
gsettings list-recursively | grep keybindings
The keen eye will find that some settings might not have this word in their name (eg. org.gnome.desktop.wm.preferences mouse-button-modifier) so you could grep by < as well to find all assigned keybindings (unassigned keybindings will not show up).
gsettings list-recursively | grep '<'
I'm sure there is some clever grep regex that can match both..
4levels
- 187
1
This perl script lists all settings that gsettings and dconf knows about.
#!/usr/bin/perl
@s = split /\n/, `gsettings list-schemas`;
print "gsettings";
foreach (@s) {
system "gsettings list-recursively $_";
};
print "dconf";
print `dconf dump /`;
For a more comprehensive script, see here: https://github.com/bjohas/Ubuntu-keyboard-map-like-OS-X/tree/master/scripts
bjohas
- 563