add udev_brightness script
This commit is contained in:
parent
77f6148ca1
commit
6793200098
9
scripts/scripts/udev_brightness
Executable file
9
scripts/scripts/udev_brightness
Executable file
@ -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'
|
||||||
Loading…
x
Reference in New Issue
Block a user