On the computer upstairs we have an option to make the computer make a sound when we press Caps Lock, Number Lock and Scroll Lock. Is there a way to do this on Ubuntu 12.04?
Ok, so I got this to work with xbindkeys.
We will use Beep as notification sound.
To install Beep:
Ok, now for the notification script:
Insert this piece of script(smallest script ever?):
and safe it.
Once it is installed, go to your home folder, and make a new file named:".xbindkeysrc".
Now we do need the keynumbers xbindkeys requires.
A windows will popup, and then you are to press the key you want the code from, eg. Capslock.
You will see something like:
Now, we only need the
Now, remember the xbindkeysrc we opened in the texteditor? We are going to add the following:
This line will tell what the xbindkeys has to do when certain keys are pressed. The next line we will add is the keycode(s). like this:
if you want the same thing to happen with multiple keys, you must separate the keys, like this:
I hope that this guide was usefull for you and others.
Here's the simplest solution: http://handytutorial.com/install-caps-lock-key-indicator-in-ubuntu-12-04/