diff options
| author | Danilo M. <danix@danix.xyz> | 2026-06-23 12:12:29 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-06-23 12:21:50 +0200 |
| commit | d15531a76f87e29e32c18ba64445003cafe1734a (patch) | |
| tree | 52c4c17434b4cba9212a32907a149a592fb185e4 /waybar-breaktimer.config.jsonc | |
| download | breaktimer-d15531a76f87e29e32c18ba64445003cafe1734a.tar.gz breaktimer-d15531a76f87e29e32c18ba64445003cafe1734a.zip | |
Initial commit: breaktimer break-reminder daemon with Waybar module
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'waybar-breaktimer.config.jsonc')
| -rw-r--r-- | waybar-breaktimer.config.jsonc | 43 |
1 files changed, 43 insertions, 0 deletions
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; +} + + ============================================================ */ |
