summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/unclutter-toggle.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-03-21 22:25:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-03-21 22:25:20 (GMT)
commit8cf4c240d609d3fe1ac5332c25217f636351e31a (patch)
treea592da62012e7469867dea21ee70698df4fec543 /abs/core-testing/LinHES-system/unclutter-toggle.sh
parentd35e3624bb54c02a7488fd2e1501a2af3c5aaff6 (diff)
downloadlinhes_pkgbuild-8cf4c240d609d3fe1ac5332c25217f636351e31a.zip
linhes_pkgbuild-8cf4c240d609d3fe1ac5332c25217f636351e31a.tar.gz
linhes_pkgbuild-8cf4c240d609d3fe1ac5332c25217f636351e31a.tar.bz2
linhes-system: set defaults for unclutter back to sane values for an appliance, for when the cfg file can not be found.
modify system to make use of /etc/unclutter.cfg If the enduser doesn't like the default values they can safely make changes to /etc/unclutter.cfg closes 660 ref 628
Diffstat (limited to 'abs/core-testing/LinHES-system/unclutter-toggle.sh')
-rw-r--r--abs/core-testing/LinHES-system/unclutter-toggle.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/abs/core-testing/LinHES-system/unclutter-toggle.sh b/abs/core-testing/LinHES-system/unclutter-toggle.sh
index 0ead751..aadce50 100644
--- a/abs/core-testing/LinHES-system/unclutter-toggle.sh
+++ b/abs/core-testing/LinHES-system/unclutter-toggle.sh
@@ -1,8 +1,11 @@
#!/bin/bash
PIDUNC=`pidof unclutter`
+jitter=200
+idle=1
+. /etc/unclutter.cfg
if [ -n "${PIDUNC}" ];
then
killall -9 unclutter
else
- /usr/X11R6/bin/unclutter -root -idle 1 -jitter 200 -noevents &
+ /usr/X11R6/bin/unclutter -root -idle $idle -jitter $jitter -noevents &
fi