Fix args for lock-screen.sh
This commit is contained in:
parent
5a4a0fbb0d
commit
0da5137978
@ -1,18 +1,20 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
local i3lock_args=()
|
local i3lock_args=()
|
||||||
|
let image_index=1
|
||||||
|
|
||||||
for arg; do
|
for arg; do
|
||||||
case "${arg}"; in
|
case "${arg}"; in
|
||||||
--no-empty-pass|-e)
|
--no-empty-pass|-e)
|
||||||
i3lock_args+=(-e)
|
i3lock_args+=(-e)
|
||||||
|
image_index+=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
dunstctl set-paused true
|
dunstctl set-paused true
|
||||||
xset dpms 0 0 15
|
xset dpms 0 0 15
|
||||||
i3lock ${i3lock_args} -n -i "$1"
|
i3lock ${i3lock_args} -n -i "${@[${image_index}]}"
|
||||||
xset -dpms
|
xset -dpms
|
||||||
dunstctl set-paused false
|
dunstctl set-paused false
|
||||||
mailnag &
|
mailnag &
|
||||||
|
Loading…
Reference in New Issue
Block a user