hyprland as systemd service

This commit is contained in:
2025-01-25 17:20:29 -06:00
parent 9902ad9abc
commit 29664a5d54
2 changed files with 14 additions and 6 deletions

View File

@@ -32,12 +32,6 @@
share = true;
};
loginExtra = ''
if uwsm check may-start; then
exec uwsm start hyprland-uwsm.desktop
fi
'';
initExtraFirst = ''
cat ${config.home.homeDirectory}/.cache/wal/sequences
eval "$(oh-my-posh init zsh --config ${config.home.homeDirectory}/.cache/wal/ohmyposh.toml)"

View File

@@ -231,6 +231,20 @@
rofi.enable = true;
firefox.enable = true;
};
systemd.user.services.hyprland-autostart = {
Unit = {
Description = "Autostart Hyprland";
};
Service = {
ExecStart = "uwsm start hyprland-uwsm.desktop";
};
Install = {
WantedBy = "default.target";
};
};
}
];
};