mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-04 20:28:23 +02:00
The old bash bin short-circuited with close_visible_quickshell_menu at the top of open_quickshell_menu, so pressing any menu keybind while the menu was open just closed it. The IPC path I introduced summoned every time, so keyboard shortcuts couldn't dismiss \u2014 only outside clicks did (which is why the bar icon appeared to toggle: clicking it while the menu was open hit the menu's outer-click MouseArea, not the icon). Add a menu.toggle IPC method: - if root.opened: cancel() and return "closed" - otherwise: behaves exactly like summon Switch every Hyprland binding and the two bar-icon click handlers (omarchy logo, battery right-click \u2192 power menu) to toggle. summon stays as the always-open primitive for callers that want explicit summon semantics (rare \u2014 right now nothing internal uses it).