Files
nixos-config/scripts/brightness-notify.sh
T

9 lines
273 B
Bash
Executable File

#!/usr/bin/env bash
BRIGHTNESS=$(brightnessctl -m | cut -d, -f4 | tr -d '%')
notify-send -h string:x-canonical-private-synchronous:brightness \
-h "int:value:$BRIGHTNESS" \
-c "osd" \
"Brightness: ${BRIGHTNESS}%" -i display-brightness