diff options
-rwxr-xr-x | bin/xorg_autolock | 25 |
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 |