From 0519efdf0193de2d0510b6fe36e08f955acca944 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 18 May 2026 12:35:07 +0100 Subject: [PATCH] anyrun: fix config and restore toggle behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit terminal field still expects Option wrapper (Some("ghostty")). Restore close-or-open toggle for Super+R — with the daemon running, `anyrun close` correctly fails when no window is open. Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 5fdfa43..c19a45d 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -292,7 +292,7 @@ in -- Apps hl.bind(mod .. " + T", hl.dsp.exec_cmd("ghostty")) hl.bind(mod .. " + E", hl.dsp.exec_cmd("nemo")) - hl.bind(mod .. " + R", hl.dsp.exec_cmd("anyrun")) + hl.bind(mod .. " + R", hl.dsp.exec_cmd("anyrun close || anyrun")) hl.bind(mod .. " + Q", hl.dsp.window.close()) hl.bind(mod .. " + SHIFT + E", hl.dsp.exit()) @@ -429,7 +429,7 @@ in Config( desktop_actions: false, max_entries: 8, - terminal: "ghostty", + terminal: Some("ghostty"), ) ''; };