aboutsummaryrefslogtreecommitdiffstats
path: root/waybar-breaktimer.config.jsonc
blob: a86bf5e33a1b1f2ea038f83c47237ba33e980556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
}

   ============================================================ */