From 76aff0f846111576534f4aa77e602a5d502154cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Thu, 12 Nov 2020 16:59:13 +0300 Subject: waybar: show used memory --- dotfiles/.config/waybar/config | 7 ++++++- dotfiles/.config/waybar/style.css | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/waybar/config b/dotfiles/.config/waybar/config index 23d2f29..d58ffbd 100644 --- a/dotfiles/.config/waybar/config +++ b/dotfiles/.config/waybar/config @@ -20,6 +20,7 @@ "custom/pac-status", "custom/news-status", "custom/torrent-status", + "memory", "custom/vpn-status", "network", "backlight", @@ -76,7 +77,11 @@ "tooltip": false }, "memory": { - "format": "{}% " + "format": " {used:0.3f}G", + "states": { + "warning": 90 + }, + "interval": 10 }, "temperature": { // "thermal-zone": 2, diff --git a/dotfiles/.config/waybar/style.css b/dotfiles/.config/waybar/style.css index 3eb4199..887c3ab 100644 --- a/dotfiles/.config/waybar/style.css +++ b/dotfiles/.config/waybar/style.css @@ -33,6 +33,7 @@ window#waybar { color: #000000; } #tray, +#memory, #battery, #network, #backlight, @@ -43,6 +44,9 @@ window#waybar { border-top: 2px solid #000000; border-bottom: 2px solid #000000; } +#memory.warning { + color: #b2872f; +} #workspaces { padding: 0; } @@ -67,6 +71,7 @@ window#waybar { #mpd, #tray, #clock, +#memory, #battery, #network, #backlight, -- cgit v1.2.3