#!/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