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
|
|
|
|
}
|
|
|
|
|
2018-05-02 02:30:43 +00:00
|
|
|
dunst stop
|
2017-09-04 19:19:36 +00:00
|
|
|
|
2018-07-21 04:46:57 +00:00
|
|
|
# lock colors
|
|
|
|
c0='#00000000' # clear
|
|
|
|
#c1='#000000ff' # black
|
|
|
|
c2='#007c0000'
|
|
|
|
c3='#af000000'
|
|
|
|
c4='#af0000ff'
|
|
|
|
c5='#00d70000'
|
|
|
|
c6='#9c060600'
|
|
|
|
c7='#eeeeec00'
|
|
|
|
c8='#eeeeecff'
|
|
|
|
c9='#12121200'
|
|
|
|
cA='#c4a000ff'
|
|
|
|
|
2018-05-02 02:30:43 +00:00
|
|
|
# Fork both i3lock and its monitor to avoid blocking xautolock.
|
|
|
|
i3lock \
|
2018-07-21 04:46:57 +00:00
|
|
|
-i ~/Pictures/maralock.png \
|
|
|
|
--insidevercolor=$c2 \
|
|
|
|
--insidewrongcolor=$c3 \
|
|
|
|
--insidecolor=$c0 \
|
|
|
|
--ringvercolor=$c5 \
|
|
|
|
--ringwrongcolor=$c6 \
|
|
|
|
--ringcolor=$c7 \
|
|
|
|
--verifcolor=$c8 \
|
|
|
|
--wrongcolor=$c4 \
|
|
|
|
--linecolor=$c7 \
|
|
|
|
--separatorcolor=$c9 \
|
|
|
|
--keyhlcolor=$c8 \
|
|
|
|
--bshlcolor=$cA \
|
|
|
|
--radius 98 \
|
|
|
|
--ring-width 3.8 \
|
|
|
|
--indpos="684:353" \
|
|
|
|
--veriftext="0x0D.7" \
|
|
|
|
--wrongtext="005917" \
|
|
|
|
--ignore-empty-password \
|
|
|
|
--nofork &
|
2017-09-04 19:19:36 +00:00
|
|
|
|
2018-05-02 02:30:43 +00:00
|
|
|
pid="$!"
|
|
|
|
while 2>/dev/null kill -0 "$pid"; do
|
|
|
|
sleep 1
|
|
|
|
done
|
2017-09-04 19:19:36 +00:00
|
|
|
|
2018-05-02 02:30:43 +00:00
|
|
|
dunst resume
|