make clicking on the battery open the power menu

Bothered me that the power profile setting was so hidden away, so I made it pop up by clicking the battery icon. :)
This commit is contained in:
Cai Strickland
2025-08-27 15:49:33 +02:00
parent c09ac13f90
commit 393767cbec
2 changed files with 2 additions and 0 deletions

View File

@@ -382,6 +382,7 @@ go_to_menu() {
*update*) show_update_menu ;;
*system*) show_system_menu ;;
*about*) alacritty --class Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s' ;;
*power*) show_setup_power_menu ;;
esac
}

View File

@@ -88,6 +88,7 @@
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
"interval": 5,
"on-click": "omarchy-menu power",
"states": {
"warning": 20,
"critical": 10