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:
@@ -102,9 +102,11 @@ window#waybar {
|
||||
|
||||
#cpu,
|
||||
#temperature,
|
||||
#custom-cpu-temp,
|
||||
#custom-gpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#custom-disks,
|
||||
#custom-network,
|
||||
#clock,
|
||||
#custom-date,
|
||||
@@ -140,7 +142,8 @@ window#waybar {
|
||||
|
||||
/* ── Température ──────────────────────────────────────────────────────────── */
|
||||
|
||||
#temperature {
|
||||
#temperature,
|
||||
#custom-cpu-temp {
|
||||
color: rgba(139, 233, 253, 0.60);
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
@@ -148,12 +151,17 @@ window#waybar {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
#temperature.critical,
|
||||
#custom-cpu-temp.critical {
|
||||
color: #f38ba8;
|
||||
font-weight: bold;
|
||||
animation: pulse-critical 0.8s linear infinite;
|
||||
}
|
||||
|
||||
#custom-cpu-temp.warning {
|
||||
color: #f9e2af;
|
||||
}
|
||||
|
||||
/* ── GPU ──────────────────────────────────────────────────────────────────── */
|
||||
|
||||
#custom-gpu {
|
||||
@@ -186,7 +194,8 @@ window#waybar {
|
||||
|
||||
/* ── Disque ───────────────────────────────────────────────────────────────── */
|
||||
|
||||
#disk {
|
||||
#disk,
|
||||
#custom-disks {
|
||||
color: rgba(255, 121, 198, 0.70);
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
@@ -405,6 +414,8 @@ tooltip label {
|
||||
#cpu:hover,
|
||||
#memory:hover,
|
||||
#disk:hover,
|
||||
#custom-disks:hover,
|
||||
#custom-cpu-temp:hover,
|
||||
#custom-network:hover,
|
||||
#wireplumber:hover,
|
||||
#backlight:hover,
|
||||
|
||||
Reference in New Issue
Block a user