From b4aecb0cee7f1ed9dbb895dfea702accd6ae9af7 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 29 Apr 2023 14:16:06 -0700 Subject: [PATCH] Update lock-screen.sh --- lock-screen.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lock-screen.sh b/lock-screen.sh index 1b62078..2b60f34 100755 --- a/lock-screen.sh +++ b/lock-screen.sh @@ -1,7 +1,18 @@ #!/usr/bin/env zsh + +local i3lock_args=() + +for arg; do + case "${arg}"; in + --no-empty-pass|-e) + i3lock_args+=(-e) + ;; + esac +done + dunstctl set-paused true xset dpms 0 0 15 -i3lock -e -n -i "$1" +i3lock ${i3lock_args} -n -i "$1" xset -dpms dunstctl set-paused false mailnag &