dotfiles/.config/redshift/hooks/notif.sh

9 lines
198 B
Bash
Raw Normal View History

2022-02-26 22:47:57 +01:00
#!/bin/sh
2024-07-02 12:04:02 +02:00
[[ "$3" == "none" ]] && status=off || status=on
2022-02-26 22:47:57 +01:00
case $1 in
period-changed)
2024-07-02 12:04:02 +02:00
exec dunstify -i "redshift-status-${status}" -u low -r 6903 "Redshift" "Period changed to $3"
2022-02-26 22:47:57 +01:00
esac