feat(waybar): modules cpu-temp et disks portables par scripts
Remplace les modules natifs temperature (thermal-zone codé en dur) et disk (chemin fixe /) par des custom scripts auto-détectés. - cpu-temp.sh : détecte x86_pkg_temp / k10temp / coretemp via thermal_zone et hwmon, émet warning à 65° et critical à 80° - disks.sh : liste tous les FS montés réels, exclut snap/tmpfs/efi, affiche icône selon le point de montage, tooltip détaillé CSS : styles warning + hover ajoutés pour les deux modules
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
"custom/launcher",
|
||||
"custom/sep",
|
||||
"cpu",
|
||||
"temperature",
|
||||
"custom/cpu-temp",
|
||||
"custom/gpu",
|
||||
"memory",
|
||||
"disk",
|
||||
"custom/disks",
|
||||
"custom/sep",
|
||||
"custom/network"
|
||||
],
|
||||
@@ -77,15 +77,13 @@
|
||||
"interval": 2
|
||||
},
|
||||
|
||||
// ── Température ─────────────────────────────────────────────────────────
|
||||
// ── Température CPU (auto-détection) ────────────────────────────────────
|
||||
|
||||
"temperature": {
|
||||
"thermal-zone": 9,
|
||||
"format": " {temperatureC}°",
|
||||
"format-critical": " {temperatureC}°",
|
||||
"critical-threshold": 80,
|
||||
"tooltip": false,
|
||||
"interval": 2
|
||||
"custom/cpu-temp": {
|
||||
"exec": "~/.config/waybar/scripts/cpu-temp.sh",
|
||||
"return-type": "json",
|
||||
"interval": 2,
|
||||
"format": "{}"
|
||||
},
|
||||
|
||||
// ── GPU ─────────────────────────────────────────────────────────────────
|
||||
@@ -109,12 +107,13 @@
|
||||
"interval": 2
|
||||
},
|
||||
|
||||
// ── Disque ──────────────────────────────────────────────────────────────
|
||||
// ── Disques (auto-détection) ─────────────────────────────────────────────
|
||||
|
||||
"disk": {
|
||||
"format": " {used}",
|
||||
"tooltip-format": " Disque /\n{used} / {total}\n{percentage_used}% utilisé",
|
||||
"interval": 30
|
||||
"custom/disks": {
|
||||
"exec": "~/.config/waybar/scripts/disks.sh",
|
||||
"return-type": "json",
|
||||
"interval": 30,
|
||||
"format": "{}"
|
||||
},
|
||||
|
||||
// ── Réseau ──────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user