diff --git a/.scripts/wm/brightness.sh b/.scripts/wm/brightness.sh index 2bdfbfe..3863284 100755 --- a/.scripts/wm/brightness.sh +++ b/.scripts/wm/brightness.sh @@ -8,9 +8,9 @@ esac PERCENTAGE=$(printf "%.0f" "$(xbacklight)") -if $(( $PERCENTAGE >= 75 )); then +if [ "$PERCENTAGE" -ge "75" ]; then ICON="" -elif $(( $PERCENTAGE >= 25 )); then +elif [ "$PERCENTAGE" -ge "25" ]; then ICON="" else ICON=""