summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/unclutter-toggle.sh
blob: 02a12ff05a87ce185c6bab0e24ea15432370670d (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/X11R6/bin/unclutter -root -idle $idle -jitter $jitter -noevents &
fi