mirror of
https://github.com/arkorty/Scripts.git
synced 2026-03-18 01:07:10 +00:00
Update backlight
This commit is contained in:
@@ -16,7 +16,7 @@ NOTIPROG=dunstify
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
-i)
|
-i)
|
||||||
# Set the bval on (if it was muted)
|
# Set the brightness on (if it was muted)
|
||||||
$PROG -inc 10
|
$PROG -inc 10
|
||||||
;;
|
;;
|
||||||
-d)
|
-d)
|
||||||
@@ -28,5 +28,5 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
bval=$($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') # brightness value
|
brightness=$($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') # brightness value
|
||||||
$NOTIPROG -a "brictl" -u low -r "9997" -h int:value:"$bval" -i $BRIGHTNESS "Brightness: ${bval}%" -t 2000
|
$NOTIPROG -a "brictl" -u low -r "9997" -h int:value:"$brightness" -i $BRIGHTNESS "Brightness: ${brightness}%" -t 2000
|
||||||
|
|||||||
Reference in New Issue
Block a user