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 want to make my own shortcut to increase or decrease brightness.

I don't like the default shortcut of my HP laptop (Fn + F7 to decrease and Fn + F8 to increase).

Is it possible?

share|improve this question
up vote 7 down vote accepted

Yes I did it again! Thanks to myself!

1) Install XDoTool and Compiz

sudo aptitude install xdotool compizconfig-settings-manager 

2) Open CompizConfig Settings Manager


3) Go to commands and add this lines:

xdotool key XF86MonBrightnessUp  

xdotool key XF86MonBrightnessDown  

enter image description here

I hope I enjoy ;-)

share|improve this answer
This doesn't seem to exist in version – brianbaligad Nov 5 '12 at 11:36
I have a Logitech keyboard MK700 and I am trying assign a shortcut for brightness.The Logitech keyboard is secondary and connected to a laptop wirelessly.I followed your instruction but they don't work at all.I restarted my system but still nothing. – und3rd06012 Mar 14 '13 at 16:06
You shouldn't need to restart for this to work. Did you remember to go to the "Key Bindings" tab and assign some shortcut to the command? Does the command work if you run it from a terminal? – desgua Mar 16 '13 at 15:15

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.