diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-03-01 03:19:06 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-03-03 01:02:23 -0500 |
commit | 2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1 (patch) | |
tree | 0d687cc9ce69bdfe105ff4e7bd7683e769c0193a /bin | |
parent | 7ad4c569cfd127bee2e62810a8f96c2d9fda2293 (diff) | |
download | conf-2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1.tar.gz conf-2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1.zip |
switch to light-locker
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/watch_lock | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/watch_lock b/bin/watch_lock deleted file mode 100755 index 6de654f..0000000 --- a/bin/watch_lock +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/perl -use strict; -use warnings; - -my $pid = open my $in, '-|', 'xscreensaver-command -watch' - or die "Couldn't spawn process: $!"; -$SIG{TERM} = sub { kill TERM => $pid; exit }; -while (<$in>) { - if (/^LOCK/) { - system "$ENV{HOME}/.bin/on_lock"; - if ($? == -1) { - warn "Couldn't exec on_lock: $!"; - } - elsif ($? != 0) { - warn "on_lock exited with value " . ($? >> 8); - } - } elsif (/^UNBLANK/) { - #system "on_unlock" - } -} |