Update lock-screen.sh

This commit is contained in:
Alexander Rosenberg 2023-04-29 14:16:06 -07:00
parent 1d4a229daf
commit b4aecb0cee
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -1,7 +1,18 @@
#!/usr/bin/env zsh #!/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 dunstctl set-paused true
xset dpms 0 0 15 xset dpms 0 0 15
i3lock -e -n -i "$1" i3lock ${i3lock_args} -n -i "$1"
xset -dpms xset -dpms
dunstctl set-paused false dunstctl set-paused false
mailnag & mailnag &