mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-10 23:07:13 +01:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018RHwVPyiiQMPh4M3JQwQku
32 lines
816 B
Bash
Executable File
32 lines
816 B
Bash
Executable File
#!/bin/bash
|
|
# Remove workout locker systemd service
|
|
|
|
SERVICE_NAME="workout-locker.service"
|
|
TIMER_NAME="workout-locker.timer"
|
|
USER_SERVICE_DIR="$HOME/.config/systemd/user"
|
|
|
|
# Every unit install_systemd.sh creates. Removal has to enumerate all of them,
|
|
# or a "removed" locker keeps firing from a timer nobody remembers installing.
|
|
UNITS=(
|
|
"$SERVICE_NAME"
|
|
"$TIMER_NAME"
|
|
"early-bird-workout-check.timer"
|
|
"workout-sync.timer"
|
|
"workout-sync.service"
|
|
"earner-bonus.path"
|
|
"earner-bonus.service"
|
|
"runnerup-watch.service"
|
|
"workout-poke.service"
|
|
)
|
|
|
|
for unit in "${UNITS[@]}"; do
|
|
systemctl --user stop "$unit" 2>/dev/null
|
|
systemctl --user disable "$unit" 2>/dev/null
|
|
rm -f "$USER_SERVICE_DIR/$unit"
|
|
done
|
|
|
|
# Reload systemd daemon
|
|
systemctl --user daemon-reload
|
|
|
|
echo "✓ Workout locker services and timers removed"
|