diff options
| author | 2026-04-21 01:24:42 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:42 +0100 | |
| commit | 88906113038c1b4986cfc3bf6afc0fb35c5e4127 (patch) | |
| tree | 8455ae8c64fe09f0a35178b0d0a60cf525d32f77 /dot_config/waybar/config.jsonc | |
| parent | 0b0dcd8013b98fb1ac5e57921f79c25df952f262 (diff) | |
| download | dotfiles-88906113038c1b4986cfc3bf6afc0fb35c5e4127.tar.gz dotfiles-88906113038c1b4986cfc3bf6afc0fb35c5e4127.tar.bz2 dotfiles-88906113038c1b4986cfc3bf6afc0fb35c5e4127.zip | |
waybar: heat-colour CPU/memory/wifi %/temperature values via pango
Diffstat (limited to 'dot_config/waybar/config.jsonc')
| -rw-r--r-- | dot_config/waybar/config.jsonc | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index b4d03ab..585fa38 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -27,19 +27,40 @@ "cpu": { "format": "CPU {usage}%", + "format-low": "CPU <span color='#b8bb26'>{usage}%</span>", + "format-medium": "CPU <span color='#fabd2f'>{usage}%</span>", + "format-high": "CPU <span color='#fe8019'>{usage}%</span>", + "format-critical": "CPU <span color='#fb4934'>{usage}%</span>", + "states": { + "low": 0, + "medium": 30, + "high": 60, + "critical": 80, + }, "interval": 5, "tooltip": false, }, "custom/memory": { - "exec": "awk '/^MemTotal:/{t=$2} /^MemAvailable:/{a=$2} END{u=t-a; printf \"MEM %.1fG (%d%%) / %.1fG (%d%%)\\n\", u/1048576, u*100/t, a/1048576, a*100/t}' /proc/meminfo", + "exec": "~/.config/waybar/memory-status.sh", + "return-type": "json", "interval": 10, "tooltip": false, }, "temperature": { "format": "{temperatureC}°C", - "critical-threshold": 80, + "format-cool": "<span color='#b8bb26'>{temperatureC}°C</span>", + "format-warm": "<span color='#fabd2f'>{temperatureC}°C</span>", + "format-hot": "<span color='#fe8019'>{temperatureC}°C</span>", + "format-scorching": "<span color='#fb4934'>{temperatureC}°C</span>", + "states": { + "cool": 0, + "warm": 50, + "hot": 65, + "scorching": 80, + }, + "interval": 5, }, "custom/wifi": { |
