dgy
/
hexagons
Archived
1
0
Fork 0
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.
hexagons/bin/exeflock4

41 lines
1.1 KiB
Plaintext
Raw Normal View History

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.
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" \
--insidevercolor=26c6da99 --insidewrongcolor=e5393599 --insidecolor=00000000 \
--ringvercolor=215d9cff --ringwrongcolor=ff6c5fff --ringcolor=ffffffff \
--textcolor=ffffff00 --timecolor=ffffffff --datecolor=ffffffff \
--separatorcolor=121212df --keyhlcolor=7cb342ff --bshlcolor=c4a000ff \
-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