fixed bugs in fanctl
This commit is contained in:
+20
-10
@@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
textstat=min
|
textstat=auto
|
||||||
tooltipstat=30%
|
tooltipstat=Auto
|
||||||
classstat=min
|
classstat=auto
|
||||||
|
|||||||
Reference in New Issue
Block a user