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 if [[ $new_speed -lt 100 ]]; then
nbfc set -f 0 1 -s $new_speed nbfc set -f 0 1 -s $new_speed
text="custom" text="custom"
tooltip="$new_speed%" tooltip="$new_speed%"
class="custom" class="custom"
else else
text=$textstat text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
else
text=$textstat
tooltip="$tooltipstat" tooltip="$tooltipstat"
class=$classstat class=$classstat
fi
fi fi
;; ;;
decr) decr)
@@ -69,13 +74,18 @@ case $1 in
if [[ $new_speed -gt 0 ]]; then if [[ $new_speed -gt 0 ]]; then
nbfc set -f 0 1 -s $new_speed nbfc set -f 0 1 -s $new_speed
text="custom" text="custom"
tooltip="$new_speed%" tooltip="$new_speed%"
class="custom" class="custom"
else else
text=$textstat text=$textstat
tooltip="$tooltipstat"
class=$classstat
fi
else
text=$textstat
tooltip="$tooltipstat" tooltip="$tooltipstat"
class=$classstat class=$classstat
fi
fi fi
;; ;;
*) *)
+3 -3
View File
@@ -1,3 +1,3 @@
textstat=min textstat=auto
tooltipstat=30% tooltipstat=Auto
classstat=min classstat=auto