fixed bugs in fanctl

This commit is contained in:
Joel Mathew Thomas
2024-04-11 14:05:33 +05:30
parent 2581fec5fb
commit b44cdd894e
2 changed files with 23 additions and 13 deletions
+20 -10
View File
@@ -53,13 +53,18 @@ case $1 in
if [[ $new_speed -lt 100 ]]; then
nbfc set -f 0 1 -s $new_speed
text="custom"
tooltip="$new_speed%"
class="custom"
else
text=$textstat
tooltip="$new_speed%"
class="custom"
else
text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
else
text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
fi
;;
decr)
@@ -69,13 +74,18 @@ case $1 in
if [[ $new_speed -gt 0 ]]; then
nbfc set -f 0 1 -s $new_speed
text="custom"
tooltip="$new_speed%"
class="custom"
else
text=$textstat
tooltip="$new_speed%"
class="custom"
else
text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
else
text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
fi
;;
*)
+3 -3
View File
@@ -1,3 +1,3 @@
textstat=min
tooltipstat=30%
classstat=min
textstat=auto
tooltipstat=Auto
classstat=auto