Merge pull request #1178 from cstrickjacke/waybar-power-menu

make clicking on the battery icon open the power menu
This commit is contained in:
David Heinemeier Hansson
2025-08-27 21:04:17 +02:00
committed by GitHub
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