ghostty: share warm-instance daemon across desktops
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
9dbb5ff433
commit
a283ab23de
2 changed files with 15 additions and 14 deletions
|
|
@ -48,4 +48,19 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Warm Ghostty instance — new windows attach via gtk-single-instance.
|
||||||
|
systemd.user.services.ghostty-daemon = lib.mkIf isDesktop {
|
||||||
|
Unit = {
|
||||||
|
Description = "Ghostty warm instance (no window)";
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false";
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,20 +136,6 @@ main()
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.ghostty-daemon = {
|
|
||||||
Unit = {
|
|
||||||
Description = "Ghostty warm instance (no window)";
|
|
||||||
After = [ "graphical-session.target" ];
|
|
||||||
PartOf = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
Service = {
|
|
||||||
Type = "simple";
|
|
||||||
ExecStart = "${pkgs.ghostty}/bin/ghostty --initial-window=false";
|
|
||||||
Restart = "always";
|
|
||||||
};
|
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services.nemo-warmup = {
|
systemd.user.services.nemo-warmup = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Pre-warm Nemo file manager libraries";
|
Description = "Pre-warm Nemo file manager libraries";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue