diff options
Diffstat (limited to 'patches/ttym-notify-3.0.diff')
| -rw-r--r-- | patches/ttym-notify-3.0.diff | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/patches/ttym-notify-3.0.diff b/patches/ttym-notify-3.0.diff index 9ccfd5c..0a21038 100644 --- a/patches/ttym-notify-3.0.diff +++ b/patches/ttym-notify-3.0.diff @@ -1,6 +1,6 @@ diff -ruN a/config.def.h b/config.def.h ---- a/config.def.h 2026-08-25 17:18:15.698123000 +0200 -+++ b/config.def.h 2026-08-25 17:18:15.702123073 +0200 +--- a/config.def.h 2026-08-25 19:07:53.037900137 +0200 ++++ b/config.def.h 2026-08-25 19:07:53.041900210 +0200 @@ -4,6 +4,19 @@ static const char *const BAR_FILL = ">"; static const char *const BAR_EMPTY = "-"; @@ -21,33 +21,9 @@ diff -ruN a/config.def.h b/config.def.h /* persistent alert: keep ringing the bell until any key is pressed. * Foreground-only; backgrounded runs always fall through. * Override per-run with --no-persist. -diff -ruN a/config.h b/config.h ---- a/config.h 2026-08-25 17:18:15.698123000 +0200 -+++ b/config.h 2026-08-25 17:18:15.702123073 +0200 -@@ -4,6 +4,19 @@ - static const char *const BAR_FILL = ">"; - static const char *const BAR_EMPTY = "-"; - -+/* desktop notification on countdown completion. -+ * Tokens are split on whitespace; placeholders {title} and {msg} are expanded. -+ * Set NULL or "" to disable. -+ */ -+static const char *const TITLE = "Timer"; -+static const char *const NOTIFY_CMD = "notify-send -u critical {title} {msg}"; -+ -+/* sound on countdown completion. If SOUND_CMD is "" the binary autodetects -+ * a player (paplay/aplay/mpv/ffplay) and plays a default freedesktop sound. -+ * SOUND_CMD is split on whitespace; same token rules as NOTIFY_CMD. -+ */ -+static const char *const SOUND_CMD = ""; -+ - /* persistent alert: keep ringing the bell until any key is pressed. - * Foreground-only; backgrounded runs always fall through. - * Override per-run with --no-persist. -Binary files a/timer and b/timer differ diff -ruN a/ttym.c b/ttym.c ---- a/ttym.c 2026-08-25 17:18:15.698123000 +0200 -+++ b/ttym.c 2026-08-25 17:18:15.702123073 +0200 +--- a/ttym.c 2026-08-25 19:07:53.037900137 +0200 ++++ b/ttym.c 2026-08-25 19:07:53.041900210 +0200 @@ -13,6 +13,7 @@ #include <string.h> #include <strings.h> |
