aboutsummaryrefslogtreecommitdiff
path: root/betterlockscreen
diff options
context:
space:
mode:
Diffstat (limited to 'betterlockscreen')
-rwxr-xr-xbetterlockscreen4
1 files changed, 2 insertions, 2 deletions
diff --git a/betterlockscreen b/betterlockscreen
index 7d775f9..c94090b 100755
--- a/betterlockscreen
+++ b/betterlockscreen
@@ -71,7 +71,7 @@ init_filenames "$res"
prelock() {
- if [ -n lock_timeout ]; then
+ if [ ! -z "$lock_timeout" ]; then
xset dpms "$lock_timeout"
fi
if [ ! -z "$(pidof dunst)" ]; then
@@ -100,7 +100,7 @@ lock() {
postlock() {
- if [ -n lock_timeout ]; then
+ if [ ! -z "$lock_timeout" ]; then
xset dpms "$default_timeout"
fi
if [ ! -z "$(pidof dunst)" ] ; then