aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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