#!/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