From d15531a76f87e29e32c18ba64445003cafe1734a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 23 Jun 2026 12:12:29 +0200 Subject: Initial commit: breaktimer break-reminder daemon with Waybar module Co-Authored-By: Claude Opus 4.8 --- waybar-breaktimer.config.jsonc | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 waybar-breaktimer.config.jsonc (limited to 'waybar-breaktimer.config.jsonc') diff --git a/waybar-breaktimer.config.jsonc b/waybar-breaktimer.config.jsonc new file mode 100644 index 0000000..a86bf5e --- /dev/null +++ b/waybar-breaktimer.config.jsonc @@ -0,0 +1,43 @@ +// ============================================================ +// CONFIG WAYBAR - modulo breaktimer +// IMPORTANTE: se lo salvi come file separato da includere, le +// graffe esterne { } DEVONO esserci (vedi sotto). Se invece lo +// incolli dentro il tuo config principale, togli le graffe esterne +// e metti solo la riga "custom/breaktimer": { ... } tra i moduli. +// ============================================================ + +{ + "custom/breaktimer": { + "exec": "~/bin/waybar-breaktimer.sh", + "return-type": "json", + "interval": 5, + "on-click": "~/bin/breaktimer.sh toggle", + "on-click-right": "~/bin/breaktimer.sh restart", + "tooltip": true + } +} + +/* ============================================================ + CSS (aggiungi a ~/.config/waybar/style.css) + Adatta i colori ai tuoi token. + ============================================================ + +#custom-breaktimer { + padding: 0 10px; + margin: 0 2px; + border-radius: 6px; +} + +#custom-breaktimer.working { color: #a6e3a1; } // verde: stai lavorando +#custom-breaktimer.breaking { color: #89b4fa; } // blu: micro-pausa in corso +#custom-breaktimer.longbreak { color: #cba6f7; } // viola: pausa lunga +#custom-breaktimer.paused { color: #f9e2af; } // giallo: pausa manuale +#custom-breaktimer.stopped { color: #6c7086; } // grigio: fermo + +// opzionale: lampeggio durante la pausa per attirare l'occhio +#custom-breaktimer.breaking, +#custom-breaktimer.longbreak { + // animation: blink 1s steps(2) infinite; +} + + ============================================================ */ -- cgit v1.2.3