diff options
| author | 2026-05-13 13:43:28 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:28 +0100 | |
| commit | 17d039286fe439390b938616d8b00b464d16ccce (patch) | |
| tree | ecbf138bacc66fe0d6595fcf5140676d8d4564d2 /dot_config/waybar/executable_memory-status.sh | |
| parent | 40dec402b9c03e0d9a75cb8f2c45367032735d83 (diff) | |
| download | dotfiles-17d039286fe439390b938616d8b00b464d16ccce.tar.gz dotfiles-17d039286fe439390b938616d8b00b464d16ccce.tar.bz2 dotfiles-17d039286fe439390b938616d8b00b464d16ccce.zip | |
style(waybar): tighten right cluster — tray rightmost, drop disk, compact MEM, drop LOAD label
- modules-right: tray moved past clock to the rightmost slot;
disk dropped (used% on btrfs is ambiguous and the value rarely moves)
- custom/memory: drop the available-side readout, output 'MEM 3.2G 40%'
instead of 'MEM 3.2G (40%) / 4.5G (56%)'
- cpu: drop the 'LOAD' literal — bare '{load:0.2f}' next to the usage%
is unambiguous in context
The disk module config block is left intact for easy reactivation.
Diffstat (limited to 'dot_config/waybar/executable_memory-status.sh')
| -rwxr-xr-x | dot_config/waybar/executable_memory-status.sh | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/dot_config/waybar/executable_memory-status.sh b/dot_config/waybar/executable_memory-status.sh index c68f5a4..33ccc04 100755 --- a/dot_config/waybar/executable_memory-status.sh +++ b/dot_config/waybar/executable_memory-status.sh @@ -10,20 +10,12 @@ function heat(p) { if (p < 80) return "#fe8019" return "#fb4934" } -function cool(p) { - if (p < 20) return "#fb4934" - if (p < 40) return "#fe8019" - if (p < 70) return "#fabd2f" - return "#b8bb26" -} /^MemTotal:/ { t = $2 } /^MemAvailable:/ { a = $2 } END { u = t - a up = u * 100 / t - ap = a * 100 / t - printf "{\"text\":\"MEM %.1fG (<span color=\x27%s\x27>%d%%</span>) / %.1fG (<span color=\x27%s\x27>%d%%</span>)\"}\n", \ - u / 1048576, heat(up), up, \ - a / 1048576, cool(ap), ap + printf "{\"text\":\"MEM %.1fG <span color=\x27%s\x27>%d%%</span>\"}\n", \ + u / 1048576, heat(up), up } ' /proc/meminfo |
