Update lock-screen.sh
This commit is contained in:
parent
1d4a229daf
commit
b4aecb0cee
@ -1,7 +1,18 @@
|
||||
#!/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
|
||||
xset dpms 0 0 15
|
||||
i3lock -e -n -i "$1"
|
||||
i3lock ${i3lock_args} -n -i "$1"
|
||||
xset -dpms
|
||||
dunstctl set-paused false
|
||||
mailnag &
|
||||
|
Loading…
Reference in New Issue
Block a user