From 8ec8e4c876ea70ec307e2866d65b0799aef981f1 Mon Sep 17 00:00:00 2001 From: rope Date: Mon, 18 May 2026 12:20:02 +0100 Subject: [PATCH] anyrun: switch to daemon mode and fix config warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Start `anyrun daemon` at Hyprland launch for instant open times. Replace `killall anyrun` with `anyrun close` to dismiss without killing the daemon. Fix applications.ron config — newer anyrun expects plain values, not Option wrappers (Some(8) → 8). Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 0e8c87b..ebd6bdc 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -261,6 +261,7 @@ in hl.exec_cmd("wl-paste --type image --watch cliphist store") hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24") hl.exec_cmd("swayosd-server") + hl.exec_cmd("anyrun daemon") ${lib.optionalString isMacbook ''hl.exec_cmd("hypridle")''} end) @@ -286,7 +287,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("killall anyrun || 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()) @@ -305,8 +306,8 @@ in hl.bind(mod .. " + K", hl.dsp.focus({ direction = "up" })) hl.bind(mod .. " + J", hl.dsp.focus({ direction = "down" })) - -- Power menu — toggle: kills anyrun if already open - hl.bind(mod .. " + L", hl.dsp.exec_cmd("killall anyrun || ${powerMenu}")) + -- Power menu — dismiss anyrun if open, then show menu + hl.bind(mod .. " + L", hl.dsp.exec_cmd("anyrun close; ${powerMenu}")) -- Move windows hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" })) @@ -422,8 +423,8 @@ in extraConfigFiles."applications.ron".text = '' Config( desktop_actions: false, - max_entries: Some(8), - terminal: Some("ghostty"), + max_entries: 8, + terminal: "ghostty", ) ''; };