This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
2017-09-04 19:19:36 +00:00
|
|
|
#!/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.
|
2017-09-26 09:39:11 +00:00
|
|
|
i3lock \
|
|
|
|
--modsize=18 --radius=120 \
|
|
|
|
--timepos="x+400:y+10" --datepos="x+550:y+10" \
|
|
|
|
--image=/home/deadguy/Pictures/trilock.png -k \
|
|
|
|
--timestr="%H:%M" --datestr="%F" --timesize=18 --datesize=18 \
|
|
|
|
--timefont="Inconsolata" --datefont="Inconsolata" \
|
2018-01-08 05:46:50 +00:00
|
|
|
--insidevercolor=26c6da99 --insidewrongcolor=e5393599 --insidecolor=00000000 \
|
|
|
|
--ringvercolor=215d9cff --ringwrongcolor=ff6c5fff --ringcolor=ffffffff \
|
2017-11-29 23:55:29 +00:00
|
|
|
--textcolor=ffffff00 --timecolor=ffffffff --datecolor=ffffffff \
|
2018-01-08 05:46:50 +00:00
|
|
|
--separatorcolor=121212df --keyhlcolor=7cb342ff --bshlcolor=c4a000ff \
|
2017-09-26 09:39:11 +00:00
|
|
|
-B --ignore-empty-password --beep --nofork &
|
2017-09-04 19:19:36 +00:00
|
|
|
|
|
|
|
pid="$!"
|
|
|
|
while 2>/dev/null kill -0 "$pid"; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
|
|
|
dunst resume
|