mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Highlight the current power profile too
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user