diff --git a/.local/bin/nightlight b/.local/bin/nightlight new file mode 100755 index 00000000..0c48c561 --- /dev/null +++ b/.local/bin/nightlight @@ -0,0 +1,12 @@ +#!/bin/sh + +# toggle for a "nightlight" color temperature +# requires xsct + +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 diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery index 93cbe088..69b2f41c 100755 --- a/.local/bin/statusbar/sb-battery +++ b/.local/bin/statusbar/sb-battery @@ -4,6 +4,7 @@ # to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.). case $BLOCK_BUTTON in + 1) nightlight ;; 3) notify-send "🔋 Battery module" "🔋: discharging 🛑: not charging ♻: stagnant charge