Highlight the current power profile too
This commit is contained in:
parent
c97de217b3
commit
1b485efcf5
@ -147,13 +147,12 @@ show_setup_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_setup_power_menu() {
|
show_setup_power_menu() {
|
||||||
current_profile=$(powerprofilesctl get)
|
profile=$(menu "Power Profile" "$($OMARCHY_BIN_PATH/omarchy-powerprofiles-list)" "" "$(powerprofilesctl get)")
|
||||||
new_profile=$(menu "Power Profile" "$($OMARCHY_BIN_PATH/omarchy-powerprofiles-list)" "-a '${current_profile}'")
|
|
||||||
|
|
||||||
if [[ "$new_profile" == "CNCLD" || -z "$new_profile" ]]; then
|
if [[ "$profile" == "CNCLD" || -z "$profile" ]]; then
|
||||||
show_main_menu
|
show_main_menu
|
||||||
else
|
else
|
||||||
powerprofilesctl set "$new_profile"
|
powerprofilesctl set "$profile"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user