feat: add about_to_show and refresh_menu_sync methods to GlobalMenuService and refactor close_window implementation

This commit is contained in:
sankalp committed 2026-07-09 22:32:54 +05:45
1 parent aeacb397b2
commit 84976320f0
2 files changed
+29 -3

No files matched your search

+5 -3
View File
@@ -547,9 +547,11 @@ def focus_window(address: str):
def close_window(address: str):
conn = _ensure_hyprland()
if conn:
conn.send_command(f"dispatch closewindow address:{address}")
from fabric.utils import exec_shell_command_async
exec_shell_command_async(
f"hyprctl dispatch 'hl.dsp.window.close({{ window = \"address:{address}\" }})'"
)
def launch_app(command_line: str):