dotfiles/.config/redshift/hooks/notif.sh
2024-07-02 12:04:02 +02:00

8 lines
198 B
Bash
Executable file

#!/bin/sh
[[ "$3" == "none" ]] && status=off || status=on
case $1 in
period-changed)
exec dunstify -i "redshift-status-${status}" -u low -r 6903 "Redshift" "Period changed to $3"
esac