#!/bin/sh # toggle for a "nightlight" color temperature # requires xsct ifinstalled "xsct" || exit colortemp="$(xsct | cut -d' ' -f5)" if [ "$colortemp" -ge "6500" ]; then xsct 2700 && notify-send "🌙 Night Light On" else xsct 0 && notify-send "☀️ Night Light Off" fi