From ef442d464c16733e141afedbd5f4c6c9253f6867 Mon Sep 17 00:00:00 2001 From: Matthias Johnson Date: Sat, 14 Feb 2026 14:43:06 -0700 Subject: [PATCH] Add status-aware notifications, edit mode flags, job ID filtering Notifications now use ExecStopPost (fires on success and failure) with status-aware icons/messages instead of ExecStartPost (success only). Desktop uses dialog-information/dialog-error, email uses sendmail. Flags (i, e=addr) are persisted as # SYSTAB_FLAGS= comments in service files and exposed in edit mode via ID:flags syntax. Edit mode validates schedules before applying (re-edit loop like crontab -e). -S and -L accept an optional job ID to filter to a single job. Extract trim() helper to replace inline whitespace-stripping idiom. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 15 +-- README.md | 28 +++-- systab | 337 +++++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 283 insertions(+), 97 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a71d45c..8eb726c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,22 +12,22 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ./systab [OPTIONS] ``` -No build step. The script requires `bash`, `systemctl`, and optionally `notify-send` (for `-i`) and `mail` (for `-m`). +No build step. The script requires `bash`, `systemctl`, and optionally `notify-send` (for `-i`) and `sendmail`/`msmtp` (for `-m`). ## Architecture The script has two modes controlled by CLI flags: -- **Job creation** (`-t