Ok, I have made it.
Here:
#!/bin/bash
#
# Autobill
# GPLv3
while true; do
VAJON=`xmodmap -pke | grep aacute >/dev/null && echo 1 || echo 0`
if [ $VAJON -eq 0 ]
then
bill 2>/dev/null
fi
sleep 2; done
If you do know a nicer way, I am interested. This one is a weird solution. But it works!
|