aboutsummaryrefslogtreecommitdiffstats
path: root/bin/xorg_autolock
diff options
context:
space:
mode:
authorDavid Runge <david.runge@native-instruments.de>2019-01-10 11:46:01 +0100
committerDavid Runge <david.runge@native-instruments.de>2019-01-10 11:46:01 +0100
commit7c6516dd36414e7208d573bba463b0a9364e745b (patch)
tree5c50f8d99bfbfaeb1673b3d06c08c82908a20178 /bin/xorg_autolock
parent89189971dff6a4070cfee0f05eb468e28902bfb8 (diff)
parent324e2d6adff3acc74098b5f1a19e94ba2171917b (diff)
downloaddotfiles-7c6516dd36414e7208d573bba463b0a9364e745b.tar.gz
dotfiles-7c6516dd36414e7208d573bba463b0a9364e745b.tar.bz2
dotfiles-7c6516dd36414e7208d573bba463b0a9364e745b.tar.xz
dotfiles-7c6516dd36414e7208d573bba463b0a9364e745b.zip
Merge branch 'master' of git.sleepmap.de:config/dotfiles
* 'master' of git.sleepmap.de:config/dotfiles: bin/backlight: Adding more thorough description. Adding better help printout. Only print help on -h. Print current brightness in percentage when not giving any parameter. bin/realtime-suggestions: Now upstreamed ( https://github.com/linuxaudio/realtime-suggestions ). bin/xorg_autolock: Removing useless script. .xprofile: Remove xorg_autolock (as it's causing a lot of trouble with screen suspend and killing of user environment on shutdown. bin/realtime-suggestions: Switching to info level for detection of audio group. bin/realtime-suggestions: Switching the kernel_config location to somewhere below /boot, if the default below /proc/config.gz was not found. Rewriting all kernel config checks to use a unified function kernel_config_has() and cmdline checks to use kernel_cmdline_has(). bin/realtime-suggestions: Changing check for policy directory in check_cpu_governor(), so that we fail if we don't at least find one policy dir. bin/realtime-suggestions: Guarding against non-existing cpufreq dir in /sys, when running check_cpu_governor(). Mentioning default value in check_max_user_watches(). bin/realtime-suggestions: Adding check for virtualization/containerization. .config/systemd/user/gpg-refresh.*: Adding local systemd user service for PGP key refresh. bin/realtime-suggestions: Fixing unitialized variable in message printout. bin/realtime-suggestions: Adding check for Linux kernel. bin/realtime-suggestions: Switching WARNING to CHANGE. Only checking for CONFIG_NO_HZ_{,COMMON,FULL}. bin/realtime-suggestions: Ignoring /boot mount points (it's very unlikely to use that for anything but boot stuff). bin/realtime-suggestions: Adding realtime-suggestions. .ssh/config: Using a ed25519 key for apu-access. .config/packages-community.txt: Adding eq10q and osc2midi. .xserverrc: Redirect output to a log file. .config/khal/config: Adding Nanni's personal calendar. .vdirsyncer/config: Adding nanni's personal calendar.
Diffstat (limited to 'bin/xorg_autolock')
-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