This commit is contained in:
Salyrus
2021-12-08 10:52:36 +01:00
parent 416d2ebcf8
commit 2ec1bdcbad
29 changed files with 3005 additions and 8 deletions

View File

@ -0,0 +1,16 @@
#!/bin/bash
BRIGHTNESS_VALUE=`brightnessctl | grep -o "(.*" | tr -d "()"`
BRIGHTNESS_NR=${BRIGHTNESS_VALUE//%}
if [ $BRIGHTNESS_NR -lt 20 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 50 ]; then
BRIGHTNESS_ICON=''
elif [ $BRIGHTNESS_NR -lt 80 ]; then
BRIGHTNESS_ICON=''
else
BRIGHTNESS_ICON=''
fi
echo "$BRIGHTNESS_ICON $BRIGHTNESS_VALUE"