From 8a323024746aa27a369e682761cd42b41ee159df Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Mon, 10 Nov 2025 21:09:50 +0100 Subject: [PATCH] noctalia-shell: add systemd service --- PKGBUILD | 12 ++++++------ noctalia-shell.install | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 noctalia-shell.install diff --git a/PKGBUILD b/PKGBUILD index 43b21c05d9d0..4fdce2244ce7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,5 @@ # Maintainer: Kevin # Co-Maintainer: Lysec - pkgname=noctalia-shell pkgver=3.0.6 pkgrel=1 @@ -8,7 +7,6 @@ pkgdesc="A sleek and minimal desktop shell thoughtfully crafted for Wayland, bui arch=('any') url="https://github.com/noctalia-dev/noctalia-shell" license=('MIT') - depends=( 'quickshell' 'ttf-roboto' @@ -16,7 +14,6 @@ depends=( 'gpu-screen-recorder' 'brightnessctl' ) - optdepends=( 'cliphist: For clipboard history support' 'matugen-bin: Material You color scheme generation' @@ -25,16 +22,19 @@ optdepends=( 'power-profiles-daemon: For power profile management' 'ddcutil: For external display brightness control' ) - conflicts=('noctalia-shell-git') - +install="${pkgname}.install" source=("git+$url.git#tag=v$pkgver") sha256sums=('fd6c7bbb96b5d127facfd8b6c7897f8bdb052d5d87851ff3cfa0eb8e108b3f12') package() { cd "$srcdir/$pkgname" - + # Install shell files to quickshell system config directory install -dm755 "$pkgdir/etc/xdg/quickshell/noctalia-shell" cp -r ./* "$pkgdir/etc/xdg/quickshell/noctalia-shell/" + + # Install systemd user service + install -Dm644 "Assets/Services/systemd/noctalia.service" \ + "$pkgdir/usr/lib/systemd/user/noctalia.service" } diff --git a/noctalia-shell.install b/noctalia-shell.install new file mode 100644 index 000000000000..25a4d603d943 --- /dev/null +++ b/noctalia-shell.install @@ -0,0 +1,20 @@ +post_install() { + echo "" + echo "==> To start noctalia-shell, you have two options:" + echo " 1. Run directly: qs -c noctalia-shell" + echo " 2. Use systemd service: systemctl --user enable --now noctalia.service" + echo "" +} + +post_upgrade() { + echo "" + echo "==> noctalia-shell has been updated" + echo "==> If using the systemd service, restart with:" + echo " systemctl --user restart noctalia.service" + echo "" +} + +pre_remove() { + systemctl --user stop noctalia.service 2>/dev/null || true + systemctl --user disable noctalia.service 2>/dev/null || true +}