mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
add nightlight script and dmenublocks action
This commit is contained in:
parent
3e8c05fe3d
commit
4dbcc84076
12
.local/bin/nightlight
Executable file
12
.local/bin/nightlight
Executable file
@ -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
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user