diff options
| author | 2026-04-21 01:24:41 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:41 +0100 | |
| commit | 0afbe08325191c9b553502473a2bb3a5fc15dc63 (patch) | |
| tree | 408eeb04880c112904fe5b452a01f6a60da59864 | |
| parent | ab6b0d4f1393b45cefbe00e0e3d6f481a40d0022 (diff) | |
| download | dotfiles-0afbe08325191c9b553502473a2bb3a5fc15dc63.tar.gz dotfiles-0afbe08325191c9b553502473a2bb3a5fc15dc63.tar.bz2 dotfiles-0afbe08325191c9b553502473a2bb3a5fc15dc63.zip | |
waybar: add free% to memory, slow network updates to 10s
| -rw-r--r-- | dot_config/waybar/config.jsonc | 10 | ||||
| -rw-r--r-- | dot_config/waybar/style.css | 3 |
2 files changed, 7 insertions, 6 deletions
diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 568738f..fc2fb38 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -8,7 +8,7 @@ "modules-right": [ "pulseaudio", "cpu", - "memory", + "custom/memory", "temperature", "network", "battery", @@ -30,10 +30,10 @@ "tooltip": false, }, - "memory": { - "format": "MEM {used:0.1f}G used / {avail:0.1f}G free", + "custom/memory": { + "exec": "awk '/^MemTotal:/{t=$2} /^MemAvailable:/{a=$2} END{u=t-a; printf \"MEM %.1fG (%d%%) used / %.1fG (%d%%) free\\n\", u/1048576, u*100/t, a/1048576, a*100/t}' /proc/meminfo", "interval": 10, - "tooltip-format": "{used:0.1f}G used · {avail:0.1f}G free · {total:0.1f}G total ({percentage}%)", + "tooltip": false, }, "temperature": { @@ -42,7 +42,7 @@ }, "network": { - "interval": 2, + "interval": 10, "format-wifi": "{essid} {signalStrength}% ↓{bandwidthDownBits} ↑{bandwidthUpBits}", "format-ethernet": "↓{bandwidthDownBits} ↑{bandwidthUpBits}", "format-disconnected": "disconnected", diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index 689668d..8e1299d 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -40,7 +40,8 @@ window#waybar { #temperature, #network, #pulseaudio, -#tray { +#tray, +#custom-memory { padding: 0 6px; } |
