Drop the systemd running on advice from outfoxxed

This commit is contained in:
David Heinemeier Hansson
2026-05-19 11:20:29 +02:00
parent 2896fc5c98
commit c6d7aa9494
11 changed files with 32 additions and 60 deletions
+2 -11
View File
@@ -1,17 +1,8 @@
echo "Run omarchy-shell as a supervised user service"
mkdir -p ~/.config/systemd/user
cp "$OMARCHY_PATH/config/systemd/user/omarchy-shell.service" ~/.config/systemd/user/omarchy-shell.service
systemctl --user daemon-reload
echo "Use omarchy-shell as the Quickshell IPC entry point"
for file in ~/.config/hypr/bindings.lua ~/.config/hypr/bindings/*.lua; do
[[ -f $file ]] || continue
sed -i 's/omarchy-shell-ipc-fast/omarchy-shell/g; s/omarchy-shell-ipc/omarchy-shell/g; s/omarchy-shell[[:space:]]\+--if-running/omarchy-shell/g' "$file"
done
if ! systemctl --user is-active --quiet omarchy-shell.service && omarchy-cmd-present quickshell; then
quickshell kill -p "$OMARCHY_PATH/shell" >/dev/null 2>&1 || true
quickshell kill -p "$OMARCHY_PATH/default/quickshell"/omarchy-shell >/dev/null 2>&1 || true
fi
systemctl --user enable --now omarchy-shell.service || true
omarchy-restart-shell
+1 -7
View File
@@ -1,13 +1,7 @@
echo "Move omarchy-shell to the top-level shell directory"
mkdir -p ~/.config/systemd/user
cp "$OMARCHY_PATH/config/systemd/user/omarchy-shell.service" ~/.config/systemd/user/omarchy-shell.service
systemctl --user daemon-reload
if omarchy-cmd-present quickshell; then
quickshell kill -p "$OMARCHY_PATH/default/quickshell"/omarchy-shell >/dev/null 2>&1 || true
fi
if systemctl --user is-enabled --quiet omarchy-shell.service || systemctl --user is-active --quiet omarchy-shell.service; then
systemctl --user restart omarchy-shell.service || true
fi
omarchy-restart-shell
+7
View File
@@ -0,0 +1,7 @@
echo "Remove the omarchy-shell user service"
systemctl --user disable --now omarchy-shell.service >/dev/null 2>&1 || true
rm -f ~/.config/systemd/user/omarchy-shell.service
systemctl --user daemon-reload >/dev/null 2>&1 || true
omarchy-restart-shell