From 8781ac9f2f236d245de62ce7400532320cbc8f66 Mon Sep 17 00:00:00 2001 From: Matthias Johnson Date: Sat, 14 Feb 2026 21:49:18 -0700 Subject: [PATCH] Refactor: deduplicate notifications, fix timer parsing, -o optional arg - Extract build_job_list helper (shared by show_status/list_logs) - clean_jobs now calls remove_job instead of inline stop/disable/rm - Extract status preamble in write_notify_lines (icon_pre/status_pre) - Replace fragile list-timers tail/awk with systemctl show properties - Combine consecutive sed -i calls into single invocations - Simplify is_manage_mode check to use existing manage_count - Make -o accept optional line count arg (-o 20 or just -o for default 10) - Fix %%s escaping in unit files and document in CLAUDE.md Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 6 +-- README.md | 4 +- systab | 123 +++++++++++++++++++++++++----------------------------- 3 files changed, 62 insertions(+), 71 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 95a0fd2..c31981c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,9 +18,9 @@ No build step. The script requires `bash`, `systemctl`, and optionally `notify-s The script has two modes controlled by CLI flags: -- **Job creation** (`-t