From b1d748324daa5eae6a8d117d9ec5f725ac1b9a4f Mon Sep 17 00:00:00 2001 From: rope Date: Sat, 30 May 2026 11:38:39 +0100 Subject: [PATCH] anyrun: fix config for 25.12.0, add daemon service Terminal is now a struct (command + args), max_entries is Option, applications.ron uses bare tuple not Config(). Add systemd user service for anyrun daemon to avoid slow standalone startup. Co-Authored-By: Claude Opus 4.6 --- settings/hyprland.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 14246bc..64b2151 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -409,6 +409,20 @@ in # Hyprland session so they don't crash-loop in a GNOME session. wayland.systemd.target = "hyprland-session.target"; + systemd.user.services.anyrun = { + Unit = { + Description = "Anyrun launcher daemon"; + PartOf = [ "graphical-session.target" ]; + After = [ "graphical-session.target" ]; + }; + Service = { + ExecStart = "${pkgs.anyrun}/bin/anyrun daemon"; + Restart = "on-failure"; + RestartSec = 2; + }; + Install.WantedBy = [ "hyprland-session.target" ]; + }; + systemd.user.services.quickshell = { Unit = { Description = "Quickshell desktop shell"; @@ -2386,7 +2400,7 @@ in layer: Overlay, hide_plugin_info: true, close_on_click: true, - max_entries: 8, + max_entries: Some(8), plugins: [ "${pkgs.anyrun}/lib/libapplications.so", ], @@ -2425,10 +2439,13 @@ in label.match.description { color: #${c.base04}; font-size: 11px; } ''; "anyrun/applications.ron".text = '' - Config( + ( desktop_actions: false, max_entries: 8, - terminal: Some("ghostty"), + terminal: Some(( + command: "ghostty", + args: "-e {}", + )), ) ''; };