#!/bin/sh set -eu NOTIFY_ID=9990 amount=$1 device=$2 name=$3 brightness=$(brightnessctl -md "$device" s "$amount") brightness=${brightness#*,*,*,} brightness=${brightness%\%,*} notify-send -u low -r "$NOTIFY_ID" -h int:value:"$brightness" "$name Brightness"