#!/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 # lock colors c0='#00000000' # clear #c1='#000000ff' # black # c2='#FABD2F88' # c3='#FB493488' c4='#d23c3dff' c5='#fecf4dff' # c6='#28282888' c7='#FFFFFFFF' c8='#eeeeecff' c9='#12121200' # cA='#c4a000ff' lock="$HOME/img/lockscreen/winlock.jpg" i3lock \ --image="$lock" \ --insidevercolor=$c5 \ --insidewrongcolor=$c4 \ --insidecolor=$c0 \ --ringvercolor=$c7 \ --ringwrongcolor=$c7 \ --ringcolor=$c7 \ --verifcolor=$c8 \ --wrongcolor=$c4 \ --linecolor=$c4 \ --separatorcolor=$c0 \ --keyhlcolor=$c4 \ --bshlcolor=$c4 \ --layoutcolor=$c9 \ --indpos="x+26:y+740" \ --line-uses-inside \ --radius=10 \ --ring-width=3 \ --veriftext='' \ --wrongtext='' \ --noinputtext='' \ --ignore-empty-password \ --nofork & pid="$!" while 2>/dev/null kill -0 "$pid"; do sleep 1 done dunst resume