38 lines
977 B
Bash
Executable File
38 lines
977 B
Bash
Executable File
#!/bin/sh
|
|
|
|
dunst() {
|
|
pkill -0 --exact dunst || return 0
|
|
|
|
case ${1:-} in
|
|
stop)
|
|
pkill -USR1 --euid "$(id -u)" --exact dunst
|
|
;;
|
|
resume)
|
|
pkill -USR2 --euid "$(id -u)" --exact dunst
|
|
;;
|
|
*)
|
|
echo "dunst argument required: stop or resume"
|
|
return 1
|
|
;;
|
|
esac
|
|
}
|
|
|
|
dunst stop
|
|
|
|
# Fork both i3lock and its monitor to avoid blocking xautolock.
|
|
i3lock \
|
|
--radius=98 --ring-width=3.8 --indpos="684:353" \
|
|
--image=/home/deadguy/Pictures/maralock.png --color=000000 \
|
|
--insidevercolor=007c0000 --insidewrongcolor=af000000 --insidecolor=00000000 \
|
|
--ringvercolor=00d70000 --ringwrongcolor=9c060600 --ringcolor=eeeeec00 \
|
|
--verifcolor=eeeeecff --wrongcolor=af0000ff --linecolor=eeeeec00 \
|
|
--separatorcolor=12121200 --keyhlcolor=eeeeecff --bshlcolor=c4a000ff \
|
|
--veriftext="0x0D.7" --wrongtext="005917" --ignore-empty-password --nofork &
|
|
|
|
pid="$!"
|
|
while 2>/dev/null kill -0 "$pid"; do
|
|
sleep 1
|
|
done
|
|
|
|
dunst resume
|