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 &