summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/unclutter-toggle.sh
blob: 9b08a141f512e9c220f2721e9166618d6c1a1357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
PIDUNC=`pidof unclutter`
jitter=200
idle=1
. /etc/unclutter.cfg
if [ -n "${PIDUNC}" ];
then
    msg_client.py --msg "Showing mouse pointer..."
    killall -9 unclutter
else
    msg_client.py --msg "Hiding mouse pointer..."
    /usr/bin/unclutter -root -idle $idle -jitter $jitter -noevents &
fi