2023-04-29 00:16:16 -07:00
|
|
|
#!/usr/bin/env zsh
|
2023-04-29 14:16:06 -07:00
|
|
|
|
|
|
|
local i3lock_args=()
|
2023-05-17 21:48:31 -07:00
|
|
|
let image_index=1
|
2023-04-29 14:16:06 -07:00
|
|
|
|
|
|
|
for arg; do
|
|
|
|
case "${arg}"; in
|
|
|
|
--no-empty-pass|-e)
|
|
|
|
i3lock_args+=(-e)
|
2023-05-17 21:48:31 -07:00
|
|
|
image_index+=1
|
2023-04-29 14:16:06 -07:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2023-04-29 00:16:16 -07:00
|
|
|
dunstctl set-paused true
|
|
|
|
xset dpms 0 0 15
|
2023-05-17 21:48:31 -07:00
|
|
|
i3lock ${i3lock_args} -n -i "${@[${image_index}]}"
|
2023-04-29 00:16:16 -07:00
|
|
|
xset -dpms
|
|
|
|
dunstctl set-paused false
|
|
|
|
mailnag &
|