summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 11:16:12 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-22 11:16:32 +0100
commitc61d03602c2b80cf998282ee61a3d27b82d2d81d (patch)
tree7c1deccd7b8b274836641b574d1d91188d765775
parent9631c5c4462aae4691fc596b5014eb80b906f383 (diff)
downloaddotfiles-c61d03602c2b80cf998282ee61a3d27b82d2d81d.tar.gz
dotfiles-c61d03602c2b80cf998282ee61a3d27b82d2d81d.tar.bz2
dotfiles-c61d03602c2b80cf998282ee61a3d27b82d2d81d.zip
toggle_touchpad: Offload to systemd user session service if enabled
-rwxr-xr-x.scripts/toggle_touchpad.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/.scripts/toggle_touchpad.sh b/.scripts/toggle_touchpad.sh
index 21e4e02..de781ab 100755
--- a/.scripts/toggle_touchpad.sh
+++ b/.scripts/toggle_touchpad.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+~/.scripts/toggle_user_unit.sh disable-touchpad.service && exit
+
which synclient &> /dev/null || exit
exec synclient TouchpadOff=$((1-$(synclient | awk '/TouchpadOff/ { print $3 }')))