Using this tweak you will get NotifyOSD notification bubbles when the caps lock, num lock or scroll lock status changes (you press a lock key).
One way of getting NotifyOSD notifications when you press the Caps Lock, Num Lock and Scroll Lock keys is using Indicator Keylock - which displays the lock keys status using both NotifyOSD and an appindicator.
But if you only want NotifyOSD notifications, you can do this without installing Indicator Keylock - by using a patched NotifyOSD provided by Leolik, a script and Compiz. This is a tweak Antoni "Pinguy" is using in his latest Pinguy OS 10.10 and he shared this tip with us so you can use it even if you don't want to install Pinguy OS.
1. Firstly install a patched NotifyOSD we've talked about a while back:
sudo add-apt-repository ppa:leolik/leoliksudo apt-get update && sudo apt-get upgradesudo apt-get install libnotify-binpkill notify-osd
2. Download the script from HERE and save it somewhere on your system (like a "scripts" folder in your home directory for example). Then right click the file, select "Properties" and on the "Permissions" tab, check the "Allow executing file as program" box.
3. Make sure you have CompizConfig Settings Manager installed:
sudo apt-get install compizconfig-settings-manager
Go to System > Preferences > CompizConfig Settings Manager, enable the "Commands" plugin (if not already enabled) and on the commands tab, for 3 empty command boxes, enter this:
/path/to/lock_keys caps/path/to/lock_keys num/path/to/lock_keys scrl
In the above commands, replace "/path/to/lock_keys" with the exact path to where you've save the lock_keys script (downloaded in step 1).
4. On the same CompizConfigSettings Manager Commands plugin, go to the "Key Bindings" tab and for the "Run command X" corresponding to each command enter under step 3 press the "disabled" button, then press "Grab key combination" and press the key corresponding to the command (caps, num or scroll lock). When assigning a key such as Caps Lock, Num Lock or Scoll Lock, after pressing the key, press ENTER or else Compiz will not assign the key and will wait to press some more keys!
And you're done!
Thanks to Antoni "Pinguy" for the script!(CC) www.webupd8.org 2009-2010. | Daily Ubuntu / Linux news and application reviews
Det är för närvarande 1 användare som tittar på det här ämnet. (0 medlemmar och 1 gäster)