Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
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.