Quantcast
Channel: How can I find out which command/action is executed on a shortcut combination? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 3

Answer by Ahmad Ismail for How can I find out which command/action is executed on a shortcut combination?

$
0
0

For custom keybindings the command is:

for i in $(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings | awk -F"'" '{ for (i=2;i<=NF;i+=2) print $i }'); do    echo "$(dconf read ${i}binding) $(dconf read ${i}command)"done

For a specific custom keybinding, try:

for i in $(gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings | awk -F"'" '{ for (i=2;i<=NF;i+=2) print $i }'); do    echo "$(dconf read ${i}binding) $(dconf read ${i}command)"done | grep -i '<Super>A'

For other keybinding, the command is:

for schema in $(gsettings list-schemas |  grep -E 'keybindings|media-keys')do gsettings list-recursively $schemadone

To find out what a specific key is bound to (not custom commands), run:

for schema in $(gsettings list-schemas | grep -E 'keybindings|media-keys')do    gsettings list-recursively $schema done | grep -i '<Primary><Super>Up'

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>