Use ryzenset new get functions to get currrent used profile.

This commit is contained in:
cronyakatsuki 2022-11-12 21:01:12 +01:00
parent 5c738fdc77
commit ad858aa740

View File

@ -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 () {