aurora129bacc
install.sh: enable aurora.service
+18 −0
1 file changed
- M install.sh +18 −0
| @@ -228,6 +228,7 @@ This script is provided AS IS, WITHOUT ANY WARRANTY. It will: | |||
| 228 | 228 | • Move conflicting files in your \$HOME to ~/.dotfiles-backup/ | |
| 229 | 229 | • Change your login shell to zsh | |
| 230 | 230 | • Optionally write /etc/keyd and enable keyd | |
| 231 | + | • Enable the aurora.service user unit | |
| 231 | 232 | ||
| 232 | 233 | Proceed at your OWN RISK." | |
| 233 | 234 | ) | |
| @@ -373,6 +374,23 @@ if command -v keyd >/dev/null 2>&1; then | |||
| 373 | 374 | fi | |
| 374 | 375 | ||
| 375 | 376 | ||
| 377 | + | ######################### | |
| 378 | + | ## Enable aurora shell ## | |
| 379 | + | ######################### | |
| 380 | + | # User unit, stowed to ~/.config/systemd/user. Hyprland starts it at login, | |
| 381 | + | # enabling it also ties it to graphical-session.target. No --now: no session yet. | |
| 382 | + | if [[ -f "$HOME/.config/systemd/user/aurora.service" ]]; then | |
| 383 | + | if confirm "Enable aurora.service (the desktop shell)?"; then | |
| 384 | + | systemctl --user daemon-reload | |
| 385 | + | systemctl --user enable aurora.service \ | |
| 386 | + | && log SUCCESS "Successfully enabled aurora.service" \ | |
| 387 | + | || log ERROR "Couldn't enable aurora.service (run 'systemctl --user enable aurora' after logging in)" | |
| 388 | + | fi | |
| 389 | + | else | |
| 390 | + | log WARN "aurora.service is not stowed, skipping" | |
| 391 | + | fi | |
| 392 | + | ||
| 393 | + | ||
| 376 | 394 | #################### | |
| 377 | 395 | ## Final dialogue ## | |
| 378 | 396 | #################### | |