aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2018-12-17 19:12:44 +0100
committerDavid Runge <dave@sleepmap.de>2018-12-17 19:12:44 +0100
commitdff99a3114cde5920264459365015d6354bdefcb (patch)
tree228856c14ddfaf27c51faf4db80ee33806e9ab8d /bin
parentd678e3434c747cbf5757afa4183571f786ce389b (diff)
downloaddotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.gz
dotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.bz2
dotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.xz
dotfiles-dff99a3114cde5920264459365015d6354bdefcb.zip
bin/xorg_autolock: Removing useless script.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xorg_autolock25
1 files changed, 0 insertions, 25 deletions
diff --git a/bin/xorg_autolock b/bin/xorg_autolock
deleted file mode 100755
index 181548e..0000000
--- a/bin/xorg_autolock
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-lock=${XDG_RUNTIME_DIR}/xorg_autolock.lock
-lock_block=${XDG_RUNTIME_DIR}/xorg_autolock_block
-lock_cmd="$HOME/bin/xorg_lock"
-lockafter=600000
-
-rm -f "${lock}" "${lock_block}"
-
-while true; do
- if [ ! -f "${lock}" ] && [ ! -f "${lock_block}" ];then
- if [ -x "/usr/bin/xssstate" ]; then
- if [ "$(xssstate -i)" -ge $lockafter ] && [ -x "$lock_cmd" ]; then
- $lock_cmd
- fi
- else
- echo "xssstate is note installed!"
- exit 1
- fi
- fi
-
- sleep 1
-done