kdotool is built by the Dagger pipeline but has no system install step of its own; swap-watchdog execs it by bare name, so without this the service couldn't find it. Also hardens install.sh's dagger-CLI check and brings uninstall.sh/README.md in line with the final install flow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
956 B
Bash
Executable file
26 lines
956 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Stops, disables, and removes the swap-watchdog / force-quit-gui systemd
|
|
# user services installed by this repo. Leaves the built binaries and the
|
|
# log at ~/.local/state/swap-watchdog/ in place.
|
|
set -u
|
|
|
|
echo "Stopping services..."
|
|
systemctl --user stop swap-watchdog.service force-quit-gui.service 2>/dev/null
|
|
|
|
echo "Disabling services..."
|
|
systemctl --user disable swap-watchdog.service force-quit-gui.service 2>/dev/null
|
|
|
|
echo "Removing unit files..."
|
|
rm -f "$HOME/.config/systemd/user/swap-watchdog.service"
|
|
rm -f "$HOME/.config/systemd/user/force-quit-gui.service"
|
|
|
|
systemctl --user daemon-reload
|
|
|
|
echo "Killing any still-running instances..."
|
|
pkill -f "$HOME/Code/swap-watchdog/bin/swap-watchdog" 2>/dev/null
|
|
pkill -f "$HOME/Code/swap-watchdog/bin/force-quit-gui" 2>/dev/null
|
|
|
|
echo "Removing installed kdotool..."
|
|
rm -f "$HOME/.local/bin/kdotool"
|
|
|
|
echo "Done. Source and binaries are untouched; re-run ./install.sh to re-enable."
|