ruderich.org/simon
/
config
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66210c2
)
bin/xlockscreen: terminate running xautolock before starting new one
author
Simon Ruderich
<simon@ruderich.org>
Tue, 25 Aug 2015 09:35:32 +0000
(11:35 +0200)
committer
Simon Ruderich
<simon@ruderich.org>
Tue, 25 Aug 2015 09:35:32 +0000
(11:35 +0200)
bin/xlockscreen
patch
|
blob
|
history
diff --git
a/bin/xlockscreen
b/bin/xlockscreen
index 2997692652d50037bf33fbf6cc607b98aa2a42eb..01539b28b69c3e59d763b72ec62f6f9dac2565cf 100755
(executable)
--- a/
bin/xlockscreen
+++ b/
bin/xlockscreen
@@
-58,6
+58,10
@@
if test x"$1" = xstart; then
echo xscreensaver
elif installed xautolock; then
if installed "$lock_binary"; then
+ # Terminate a running xautolock because we might have to replace
+ # its timeout and other settings with our values.
+ pkill -u "$USER" xautolock || true
+
xautolock -secure -time "$lock_time_minutes" \
-locker "$lock_binary" \
>/dev/null &