diff --git a/scripts/scripts/udev_brightness b/scripts/scripts/udev_brightness new file mode 100755 index 0000000..9be6bc2 --- /dev/null +++ b/scripts/scripts/udev_brightness @@ -0,0 +1,9 @@ +#!/bin/sh + +user=$(users | cut -d" " -f1) +export XAUTHORITY=/home/$user/.Xauthority +export DISPLAY=:0 + +export brightness=$(light) +echo $brightness +su $user -c 'notify-send "$brightness" -h int:value:$brightness -h string:x-canonical-private-synchronous:brightness'