From 82d538a6ad96d6a7dc821a879e0597426758a7bf Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 4 Apr 2025 18:01:39 +1100 Subject: install: use systemd services for shell and safeeyes --- install/shell.fish | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'install/shell.fish') diff --git a/install/shell.fish b/install/shell.fish index 3c794c4..eca9022 100755 --- a/install/shell.fish +++ b/install/shell.fish @@ -13,4 +13,28 @@ update-repo shell $shell cd $shell || exit npm install +if which systemctl &> /dev/null + log 'Installing systemd service...' + + set -l systemd $CONFIG/systemd/user + mkdir -p $systemd + echo -n " +[Unit] +Description=A visually stunning and feature-rich desktop shell made for the Caelestia project. +After=graphical-session.target + +[Service] +Type=exec +ExecStart=$shell/run.fish +Restart=on-failure +Slice=app-graphical.slice + +[Install] +WantedBy=graphical-session.target +" > $systemd/caelestia-shell.service + + systemctl --user daemon-reload + systemctl --user enable --now caelestia-shell.service +end + log 'Done.' -- cgit v1.2.3-freya