aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbetterlockscreen8
1 files changed, 6 insertions, 2 deletions
diff --git a/betterlockscreen b/betterlockscreen
index f1295d8..ca519bf 100755
--- a/betterlockscreen
+++ b/betterlockscreen
@@ -37,7 +37,9 @@ init_filenames() {
init_filenames $res
prelock() {
- pkill -u "$USER" -USR1 dunst
+ if [ ! -z "$(pidof dunst)" ] ; then
+ pkill -u "$USER" -USR1 dunst
+ fi
}
lock() {
@@ -63,7 +65,9 @@ lock() {
}
postlock() {
- pkill -u "$USER" -USR2 dunst
+ if [ ! -z "$(pidof dunst)" ] ; then
+ pkill -u "$USER" -USR2 dunst
+ fi
}
rec_get_random() {