blob: b3901ca3c4dc91c4835669f7d9c67dd4b4b3da44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
PIDUNC=`pidof unclutter`
jitter=50
idle=10
# unclutter.cfg allows the user to set idle and jitter to their own preference
. /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
|