From 0da5137978d3a42ae1da7035c86b88ee26ced65f Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 17 May 2023 21:48:31 -0700 Subject: [PATCH] Fix args for lock-screen.sh --- lock-screen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lock-screen.sh b/lock-screen.sh index 2b60f34..8307ac8 100755 --- a/lock-screen.sh +++ b/lock-screen.sh @@ -1,18 +1,20 @@ #!/usr/bin/env zsh local i3lock_args=() +let image_index=1 for arg; do case "${arg}"; in --no-empty-pass|-e) i3lock_args+=(-e) + image_index+=1 ;; esac done dunstctl set-paused true xset dpms 0 0 15 -i3lock ${i3lock_args} -n -i "$1" +i3lock ${i3lock_args} -n -i "${@[${image_index}]}" xset -dpms dunstctl set-paused false mailnag &