A linux newbie here! I own a netbook which doesn't have any indicator leds. So I decided to write a small shell script that would notify me when the capslock key is pressed. The script goes something like this:
#!/bin/bash
state=$(xset -q | grep Caps | awk '{print $4}')
if [ "$state" = "on" ]
then
notify-send "Caplock :ON"
fi
Now I want to bind the script to the capslock key so that it gets executed everytime I press the key. But the keyboard shortcuts setting expects a key combination. Is it possible to bind it to just the capslock key??
Thanks in advance!