Use ryzenset new get functions to get currrent used profile.
This commit is contained in:
parent
5c738fdc77
commit
ad858aa740
@ -12,13 +12,7 @@ get_category () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_current_profile () {
|
get_current_profile () {
|
||||||
current_temp=$(sudo get-tctl-limit)
|
current_mode=$(sudo ryzenset get)
|
||||||
|
|
||||||
[ "$current_temp" = "60" ] && current_mode="normal mode"
|
|
||||||
[ "$current_temp" = "65" ] && current_mode="light gaming"
|
|
||||||
[ "$current_temp" = "70" ] && current_mode="heavy gaming"
|
|
||||||
[ "$current_temp" = "75" ] && current_mode="heavy programs"
|
|
||||||
[ "$current_temp" = "85" ] && current_mode="heavy gaming pro"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menu () {
|
menu () {
|
||||||
|
Loading…
Reference in New Issue
Block a user