From 1b485efcf5e8815501db1c550a8d813bdb958c0c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 8 Aug 2025 16:54:06 +0200 Subject: [PATCH] Highlight the current power profile too --- bin/omarchy-menu | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 5d4c655e..16ea9a1e 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -147,13 +147,12 @@ show_setup_menu() { } show_setup_power_menu() { - current_profile=$(powerprofilesctl get) - new_profile=$(menu "Power Profile" "$($OMARCHY_BIN_PATH/omarchy-powerprofiles-list)" "-a '${current_profile}'") + profile=$(menu "Power Profile" "$($OMARCHY_BIN_PATH/omarchy-powerprofiles-list)" "" "$(powerprofilesctl get)") - if [[ "$new_profile" == "CNCLD" || -z "$new_profile" ]]; then + if [[ "$profile" == "CNCLD" || -z "$profile" ]]; then show_main_menu else - powerprofilesctl set "$new_profile" + powerprofilesctl set "$profile" fi }