#!/usr/bin/env bash if [ "$1" == "inc" ]; then xbacklight -inc 20 fi if [ "$1" == "dec" ]; then xbacklight -dec 20 fi notify-send.py "Screen Brightness" "$(printf "%.0f\n" "$(xbacklight -get)")" \ --hint string:image-path:video-display boolean:transient:true \ --replaces-process "brightness-popup"