diff options
author | David Runge <dave@sleepmap.de> | 2018-12-17 19:12:44 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-12-17 19:12:44 +0100 |
commit | dff99a3114cde5920264459365015d6354bdefcb (patch) | |
tree | 228856c14ddfaf27c51faf4db80ee33806e9ab8d /bin/xorg_autolock | |
parent | d678e3434c747cbf5757afa4183571f786ce389b (diff) | |
download | dotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.gz dotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.bz2 dotfiles-dff99a3114cde5920264459365015d6354bdefcb.tar.xz dotfiles-dff99a3114cde5920264459365015d6354bdefcb.zip |
bin/xorg_autolock: Removing useless script.
Diffstat (limited to 'bin/xorg_autolock')
-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 |