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 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-30 11:38:39 +01:00
parent 72246fc440
commit b1d748324d

View file

@ -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 {}",
)),
)
'';
};