From ad858aa740022d8420187a3a96dd11755fec6edd Mon Sep 17 00:00:00 2001 From: cronyakatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Sat, 12 Nov 2022 21:01:12 +0100 Subject: [PATCH] Use ryzenset new get functions to get currrent used profile. --- dmenu-ryzenadj | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dmenu-ryzenadj b/dmenu-ryzenadj index 8477056..636ab55 100755 --- a/dmenu-ryzenadj +++ b/dmenu-ryzenadj @@ -12,13 +12,7 @@ get_category () { } get_current_profile () { - current_temp=$(sudo get-tctl-limit) - - [ "$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" + current_mode=$(sudo ryzenset get) } menu () {