summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-01 03:19:06 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-03 01:02:23 -0500
commit2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1 (patch)
tree0d687cc9ce69bdfe105ff4e7bd7683e769c0193a
parent7ad4c569cfd127bee2e62810a8f96c2d9fda2293 (diff)
downloadconf-2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1.tar.gz
conf-2d399ea87dc7f6fe73c7e4f5e8b71477c5ca6fb1.zip
switch to light-locker
-rwxr-xr-xbin/watch_lock20
-rwxr-xr-xservices/light-locker/log/run3
-rwxr-xr-xservices/light-locker/run2
-rwxr-xr-xservices/watch_lock/log/run3
-rwxr-xr-xservices/watch_lock/run3
-rwxr-xr-xservices/xscreensaver/log/run3
-rwxr-xr-xservices/xscreensaver/run3
-rw-r--r--xbindkeysrc2
8 files changed, 6 insertions, 33 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"
- }
-}
diff --git a/services/light-locker/log/run b/services/light-locker/log/run
new file mode 100755
index 0000000..d92a97c
--- /dev/null
+++ b/services/light-locker/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec multilog t s16777215 $HOME/.log/light-locker
diff --git a/services/light-locker/run b/services/light-locker/run
new file mode 100755
index 0000000..6cf1077
--- /dev/null
+++ b/services/light-locker/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec light-locker
diff --git a/services/watch_lock/log/run b/services/watch_lock/log/run
deleted file mode 100755
index 4305b6b..0000000
--- a/services/watch_lock/log/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec multilog t s16777215 $HOME/.log/watch_lock
diff --git a/services/watch_lock/run b/services/watch_lock/run
deleted file mode 100755
index bc243e8..0000000
--- a/services/watch_lock/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec watch_lock 2>&1
diff --git a/services/xscreensaver/log/run b/services/xscreensaver/log/run
deleted file mode 100755
index 71effaf..0000000
--- a/services/xscreensaver/log/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec multilog t s16777215 $HOME/.log/xscreensaver
diff --git a/services/xscreensaver/run b/services/xscreensaver/run
deleted file mode 100755
index 8d8db07..0000000
--- a/services/xscreensaver/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-exec xscreensaver -no-splash 2>&1
diff --git a/xbindkeysrc b/xbindkeysrc
index e881019..0c7ad06 100644
--- a/xbindkeysrc
+++ b/xbindkeysrc
@@ -16,7 +16,7 @@
"dmenu_run -fn '7x14'"
Mod4 + r
-"xscreensaver-command -lock"
+"light-locker-command -l"
Mod4 + d
"numkeys toggle"