macbook: add warmup services for Ghostty and Nemo
Start Ghostty headless and pre-warm Nemo at login so both launch faster on the aging Haswell MacBook Air. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
111e8183d0
commit
38bd660ddb
1 changed files with 27 additions and 0 deletions
|
|
@ -60,6 +60,33 @@
|
||||||
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 = "on-failure";
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services.nemo-warmup = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Pre-warm Nemo file manager libraries";
|
||||||
|
After = [ "graphical-session.target" ];
|
||||||
|
PartOf = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = "${pkgs.nemo}/bin/nemo --quit";
|
||||||
|
};
|
||||||
|
Install.WantedBy = [ "graphical-session.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services.kbd-backlight-init = {
|
systemd.user.services.kbd-backlight-init = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Set keyboard backlight to 10% on login";
|
Description = "Set keyboard backlight to 10% on login";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue