Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I sometimes set keyboard shortcuts, but as there are so many keyboard shortcuts set on my system, it is hard to know what other keyboard shortcuts you might set off when setting and using a new one, so it would be really useful if there was a way (preferably through Terminal) in order to view all the keyboard shortcuts on the system that have a certain key, a certain order of certain keys, or a certain set of keys (but having it not matter which order they have in, just searching through shortcuts with those keys in them).

There will either be a utility already in existence which will allow me to do this, if so, please recommend it, however, if not, then a script or command would also be acceptable and possibly more likely as I haven't seen anything like this around. I am running Ubuntu GNOME 15.10 with GNOME 3.18.

share|improve this question
up vote 3 down vote accepted

You can view the set keyboard shortcuts for Unity and Gnome through

gsettings list-recursively | awk '/hotkey/||/keybinding/||/media-key/' | less

and

dconf dump / | awk '/keybindings/ || /media-keys/{print; getline; print }'

I suggest you play around with those commands, try filtering out the output in different ways, but in short it's all in gsettings and dconf

share|improve this answer
    
this answer is "trusty" and "precise" (pun intended) ;-) – Elder Geek Jan 25 at 22:52
    
What are media-keys? – Paranoid Panda Jan 25 at 22:52
    
I believe media-keys are the play, volume up and down, etc keys available on some keyboards (like the one I'm using now) – Elder Geek Jan 25 at 22:55
    
@ElderGeek I like your "xienial" comment ;) – Serg Jan 25 at 22:56
    
The elder geek chuckles........ – Elder Geek Jan 25 at 22:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.