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 would like to have a OSD notification display briefly everytime the CAPS, Num, or Scroll Lock state toggles.

Is there a way to do this?

share|improve this question

There is already an application that attempts to do this called indicator-keylock. You need a PPA to install it:

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update
sudo apt-get install indicator-keylock
setsid indicator-keylock  # to run it the first time

But I'd be interested to see if there's a neat way to bind onto these lock-toggle events.

share|improve this answer
Thanks, the app you mentioned also includes an icon on the systray...I would prefer for something that is invisible, but notifies via OSD when the corresponding Key is pressed. – charlie May 8 '13 at 13:12
Or is there an option on indicator-keylock to remove the system tray indicator? – charlie May 10 '13 at 4:23
awesome app but the icons don't look good. Do you know where can I edit them – akabhirav Apr 17 '14 at 20:12

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.