Use insensitive case.

This commit is contained in:
CronyAkatsuki 2023-01-09 21:48:41 +01:00
parent 32f64924d6
commit 15ecb794d7

View File

@ -6,7 +6,7 @@ load_config () {
} }
get_category () { get_category () {
category=$( sudo ryzenset list | $DMENU -p "Choose profile category:") category=$( sudo ryzenset list | $DMENU -i -p "Choose profile category:")
[ -z "$category" ] && exit 0 [ -z "$category" ] && exit 0
} }
@ -18,7 +18,7 @@ get_current_profile () {
menu () { menu () {
while [ -z "$profile" ] while [ -z "$profile" ]
do do
profile=$(sudo ryzenset list $category | $DMENU -p "Current: $current_mode:") profile=$(sudo ryzenset list $category | $DMENU -i -p "Current: $current_mode:")
[ -z "$profile" ] && get_category [ -z "$profile" ] && get_category
done done