innovate.

This commit is contained in:
2026-02-20 18:07:17 -08:00
parent 49829b6c0a
commit 94d96a4e70

12
bin/brightness Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
dunstctl close-all
case "$1" in
"up")
brightnessctl set "$2"%+;;
"down")
brightnessctl set "$2"%-;;
esac
CURRENT=$(brightnessctl get)
MAX=$(brightnessctl max)
BRIGHTNESS=$(echo "scale=2; ("$CURRENT"/"$MAX")*100" | bc | sed s/\.00$//g)
notify-send "Brightness set to "$BRIGHTNESS%"" -i :