From c9e711b9597a570bd3a7312302cc362e6bcae53d Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 3 Nov 2017 18:41:12 +0100 Subject: bin/screensaver: Adding script to enable/disable xautolock. --- bin/screensaver | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/screensaver (limited to 'bin/screensaver') 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 -- cgit v1.2.3-70-g09d2