Add brightness script
This commit is contained in:
parent
186d3f5e17
commit
4b738deb26
18
bin/brightness
Executable file
18
bin/brightness
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -x
|
||||
|
||||
DEVICE=pulse
|
||||
NAME=Master
|
||||
URGENCY=low
|
||||
EXPIRE=5000
|
||||
|
||||
brightnessctl $@
|
||||
|
||||
LEVEL=$(brightnessctl -m | awk -F, '{print $4}' | tr -d %)
|
||||
|
||||
notify-send -u $URGENCY \
|
||||
-h "int:value:$LEVEL" \
|
||||
-h string:x-dunst-stack-tag:brightness_notif \
|
||||
-t $EXPIRE \
|
||||
"BRIGHTNESS: $LEVEL"
|
Loading…
Reference in New Issue
Block a user