diff options
author | David Runge <dave@sleepmap.de> | 2017-11-03 18:41:12 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2017-11-03 18:41:12 +0100 |
commit | c9e711b9597a570bd3a7312302cc362e6bcae53d (patch) | |
tree | b0046c816a9567a2492a287eefeaa8a534410225 /bin | |
parent | 95f8ea23a05eb5309d82670a6978540b44173fcf (diff) | |
download | dotfiles-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-x | bin/screensaver | 15 |
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 |