Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 know I can change the HUD shortcut key by going into System Settings... > Keyboard > Shortcuts > Launchers > Key to show the HUD.

I need to do this from the command line, so I can put it in a postinstall script called from preseed.

share|improve this question
up vote 1 down vote accepted

The following seems to work for me (on Ubuntu 12.04) to set the HUD key to Alt:

gconftool-2 --set "/apps/compiz-1/plugins/unityshell/screen0/options/show_hud" --type string "<Alt>"

I can replace "<Alt>" (the default) with the desired keystroke, e.g. "<Alt>x" (for Alt+X) or "<Control>" for Ctrl.

Note that if you have a different screen configuration (e.g. multiple monitors), the "screen0" in the above key name may need to be changed accordingly. To find the correct key name(s), do

gconftool-2 --recursive-list "/apps/compiz-1/plugins/unityshell"

and see where the show_hud key appears.

share|improve this answer

Your Answer


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.