From 0afbe08325191c9b553502473a2bb3a5fc15dc63 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:41 +0100 Subject: waybar: add free% to memory, slow network updates to 10s --- dot_config/waybar/config.jsonc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dot_config/waybar/config.jsonc') 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", -- cgit v1.2.3-70-g09d2