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:
parent
72246fc440
commit
b1d748324d
1 changed files with 20 additions and 3 deletions
|
|
@ -409,6 +409,20 @@ in
|
||||||
# Hyprland session so they don't crash-loop in a GNOME session.
|
# Hyprland session so they don't crash-loop in a GNOME session.
|
||||||
wayland.systemd.target = "hyprland-session.target";
|
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 = {
|
systemd.user.services.quickshell = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Quickshell desktop shell";
|
Description = "Quickshell desktop shell";
|
||||||
|
|
@ -2386,7 +2400,7 @@ in
|
||||||
layer: Overlay,
|
layer: Overlay,
|
||||||
hide_plugin_info: true,
|
hide_plugin_info: true,
|
||||||
close_on_click: true,
|
close_on_click: true,
|
||||||
max_entries: 8,
|
max_entries: Some(8),
|
||||||
plugins: [
|
plugins: [
|
||||||
"${pkgs.anyrun}/lib/libapplications.so",
|
"${pkgs.anyrun}/lib/libapplications.so",
|
||||||
],
|
],
|
||||||
|
|
@ -2425,10 +2439,13 @@ in
|
||||||
label.match.description { color: #${c.base04}; font-size: 11px; }
|
label.match.description { color: #${c.base04}; font-size: 11px; }
|
||||||
'';
|
'';
|
||||||
"anyrun/applications.ron".text = ''
|
"anyrun/applications.ron".text = ''
|
||||||
Config(
|
(
|
||||||
desktop_actions: false,
|
desktop_actions: false,
|
||||||
max_entries: 8,
|
max_entries: 8,
|
||||||
terminal: Some("ghostty"),
|
terminal: Some((
|
||||||
|
command: "ghostty",
|
||||||
|
args: "-e {}",
|
||||||
|
)),
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue