aurorab35e737
aurora: rename unit to aurora-shell.service
+13 −13
6 files changed
- M .config/hypr/hyprland.lua +1 −1
- M .config/hypr/source/keybinds.lua +1 −1
- M .config/quickshell/aurora/Session.qml +2 −2
- R .config/systemd/user/aurora.service → .config/systemd/user/aurora-shell.service +1 −1
- M .local/bin/setwall +1 −1
- M install.sh +7 −7
| @@ -26,7 +26,7 @@ hl.on("hyprland.start", function() | |||
| 26 | 26 | hl.exec_cmd("wl-paste --type image --watch cliphist store") | |
| 27 | 27 | hl.exec_cmd("hyprpm reload -n") | |
| 28 | 28 | -- aurora is a systemd unit: hand it the login env (.zprofile: SUDO_ASKPASS, EDITOR, XDG dirs, ...) | |
| 29 | − | hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora") | |
| 29 | + | hl.exec_cmd("dbus-update-activation-environment --systemd --all && systemctl --user start aurora-shell") | |
| 30 | 30 | -- hl.exec_cmd("waybar") | |
| 31 | 31 | -- hl.exec_cmd("swaync") | |
| 32 | 32 | hl.exec_cmd("gammastep") | |
| @@ -31,7 +31,7 @@ hl.bind( | |||
| 31 | 31 | ----------------- | |
| 32 | 32 | hl.bind(mainMod .. " + c", hl.dsp.exec_cmd("qs -c aurora ipc call shell toggle")) | |
| 33 | 33 | hl.bind(mainMod .. " + b", hl.dsp.exec_cmd("qs -c aurora ipc call shell bar")) | |
| 34 | − | hl.bind(mainMod .. " + SHIFT + b", hl.dsp.exec_cmd("systemctl --user restart aurora")) | |
| 34 | + | hl.bind(mainMod .. " + SHIFT + b", hl.dsp.exec_cmd("systemctl --user restart aurora-shell")) | |
| 35 | 35 | ||
| 36 | 36 | hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(menu)) | |
| 37 | 37 | -- bind = $mainMod SHIFT, P, pseudo, # dwindle | |
| @@ -14,8 +14,8 @@ Singleton { | |||
| 14 | 14 | { id: "display", icon: Theme.iMonitor, label: "display off", confirm: false } | |
| 15 | 15 | ] | |
| 16 | 16 | ||
| 17 | − | // Start an app in its own systemd scope. Spawned straight from quickshell it would sit in aurora.service's cgroup: | |
| 18 | − | // killed on every `systemctl --user restart aurora`, and one that ignores SIGTERM stalls the restart for 90s. | |
| 17 | + | // Start an app in its own systemd scope. Spawned straight from quickshell it would sit in aurora-shell.service's cgroup: | |
| 18 | + | // killed on every `systemctl --user restart aurora-shell`, and one that ignores SIGTERM stalls the restart for 90s. | |
| 19 | 19 | function launch(cmd, wd) { | |
| 20 | 20 | Quickshell.execDetached({ command: ["systemd-run", "--user", "--scope", "--quiet", "--collect", "--"].concat(cmd), | |
| 21 | 21 | workingDirectory: wd || Quickshell.env("HOME") }) | |
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | [Unit] | |
| 2 | − | Description=aurora: Quickshell bar, control panel and notifications | |
| 2 | + | Description=aurora-shell: the aurora desktop shell (Quickshell) | |
| 3 | 3 | After=graphical-session.target | |
| 4 | 4 | PartOf=graphical-session.target | |
| 5 | 5 | ||
| @@ -15,7 +15,7 @@ usage() { | |||
| 15 | 15 | ipc() { | |
| 16 | 16 | out=$(qs -c aurora ipc call shell "$@" 2>&1) && [ -z "$out" ] && return | |
| 17 | 17 | echo "setwall: aurora: ${out:-not running}" >&2 | |
| 18 | − | echo " (is it running? systemctl --user start aurora)" >&2 | |
| 18 | + | echo " (is it running? systemctl --user start aurora-shell)" >&2 | |
| 19 | 19 | exit 1 | |
| 20 | 20 | } | |
| 21 | 21 | ||
| @@ -228,7 +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 | + | • Enable the aurora-shell.service user unit | |
| 232 | 232 | ||
| 233 | 233 | Proceed at your OWN RISK." | |
| 234 | 234 | ) | |
| @@ -379,15 +379,15 @@ fi | |||
| 379 | 379 | ######################### | |
| 380 | 380 | # User unit, stowed to ~/.config/systemd/user. Hyprland starts it at login, | |
| 381 | 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 | |
| 382 | + | if [[ -f "$HOME/.config/systemd/user/aurora-shell.service" ]]; then | |
| 383 | + | if confirm "Enable aurora-shell.service (the desktop shell)?"; then | |
| 384 | 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)" | |
| 385 | + | systemctl --user enable aurora-shell.service \ | |
| 386 | + | && log SUCCESS "Successfully enabled aurora-shell.service" \ | |
| 387 | + | || log ERROR "Couldn't enable aurora-shell.service (run 'systemctl --user enable aurora-shell' after logging in)" | |
| 388 | 388 | fi | |
| 389 | 389 | else | |
| 390 | − | log WARN "aurora.service is not stowed, skipping" | |
| 390 | + | log WARN "aurora-shell.service is not stowed, skipping" | |
| 391 | 391 | fi | |
| 392 | 392 | ||
| 393 | 393 | ||