random-scripts/lock-screen.sh

19 lines
274 B
Bash
Raw Normal View History

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