sxhkd_notify (334B)
1 #! /bin/sh 2 3 [ $# -ne 1 ] && exit 1 4 5 status_fifo=$1 6 7 { while read -r line ; do 8 msg=${line#?} 9 case $line in 10 H*) 11 duration=2 12 ;; 13 C*) 14 duration=4 15 ;; 16 T*) 17 duration=1 18 ;; 19 esac 20 notify-send -t $duration "$msg" 21 done } < "$status_fifo"