2023-05-26 06:32:03 +00:00
|
|
|
#!/bin/bash
|
2022-12-20 00:15:21 +00:00
|
|
|
brt=$(xbacklight -get)
|
2023-05-27 04:52:32 +00:00
|
|
|
if [ "${brt%.*}" -eq 100 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 90 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 80 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 70 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 60 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 50 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 40 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 30 ]; then
|
|
|
|
icon=""
|
|
|
|
elif [ "${brt%.*}" -ge 20 ]; then
|
|
|
|
icon=""
|
|
|
|
else
|
|
|
|
icon=""
|
2023-05-26 06:32:03 +00:00
|
|
|
fi
|
|
|
|
echo " $icon ${brt%.*}% "
|