tileos-settings-swayfx/usr/share/sway/scripts/brightness-notify.sh
2024-07-01 14:48:20 +04:00

11 lines
253 B
Bash
Executable file

#!/bin/sh
VALUE=$(light -G | cut -d'.' -f1)
TEXT="Brightness: ${VALUE}%"
notify-send \
--expire-time 800 \
--hint string:x-canonical-private-synchronous:brightness \
--hint "int:value:$VALUE" \
--hint "int:transient:1" \
"${TEXT}"