From dbb6352564c69de992911a3c3118f6d7f855eb65 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sat, 1 Jun 2024 15:48:45 -0500 Subject: [PATCH] Add swap space to bar --- sericea/.config/waybar/config | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sericea/.config/waybar/config b/sericea/.config/waybar/config index 366d5991..50b4fad4 100644 --- a/sericea/.config/waybar/config +++ b/sericea/.config/waybar/config @@ -33,7 +33,7 @@ "layer": "top", "position": "bottom", "height": 40, - "modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory", "custom/backup", "battery", "mpris"], + "modules-left": ["idle_inhibitor", "gamemode", "cpu", "memory#memory", "memory#swap", "custom/backup", "battery", "mpris"], "modules-center": [], "modules-right": ["network", "pulseaudio", "backlight", "clock"], "clock": { @@ -94,7 +94,7 @@ "regular": 50 } }, - "memory": { + "memory#memory": { "interval": 5, "format": " {percentage}%", "states": { @@ -103,6 +103,15 @@ "regular": 50 } }, + "memory#swap": { + "interval": 5, + "format": " {swapPercentage}%", + "states": { + "critical": 90, + "warning": 80, + "regular": 50 + } + }, "mpris": { "interval": 1, "artist-len": 30,