From dff99a3114cde5920264459365015d6354bdefcb Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 17 Dec 2018 19:12:44 +0100 Subject: bin/xorg_autolock: Removing useless script. --- bin/xorg_autolock | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 bin/xorg_autolock 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 -- cgit v1.2.3-70-g09d2