aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-11-03 18:41:12 +0100
committerDavid Runge <dave@sleepmap.de>2017-11-03 18:41:12 +0100
commitc9e711b9597a570bd3a7312302cc362e6bcae53d (patch)
treeb0046c816a9567a2492a287eefeaa8a534410225 /bin
parent95f8ea23a05eb5309d82670a6978540b44173fcf (diff)
downloaddotfiles-c9e711b9597a570bd3a7312302cc362e6bcae53d.tar.gz
dotfiles-c9e711b9597a570bd3a7312302cc362e6bcae53d.tar.bz2
dotfiles-c9e711b9597a570bd3a7312302cc362e6bcae53d.tar.xz
dotfiles-c9e711b9597a570bd3a7312302cc362e6bcae53d.zip
bin/screensaver: Adding script to enable/disable xautolock.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/screensaver15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/screensaver b/bin/screensaver
new file mode 100755
index 0000000..ccb56b2
--- /dev/null
+++ b/bin/screensaver
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+case ${1:-} in
+ on|1)
+ /usr/bin/xautolock -enable
+ ;;
+ off|0)
+ /usr/bin/xautolock -disable
+ ;;
+ *)
+ exit 1
+ ;;
+esac
+
+exit 0