diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-11-12 16:59:13 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2020-11-12 16:59:13 +0300 |
commit | 76aff0f846111576534f4aa77e602a5d502154cb (patch) | |
tree | 1c8d186a72384080e1732cfaf78bfb0bc2f7fb96 | |
parent | 7b079d20ab5a4bd29a0edb027c159cc6a3de8ce5 (diff) | |
download | swayrice-76aff0f846111576534f4aa77e602a5d502154cb.tar.gz swayrice-76aff0f846111576534f4aa77e602a5d502154cb.zip |
waybar: show used memory
-rw-r--r-- | dotfiles/.config/waybar/config | 7 | ||||
-rw-r--r-- | dotfiles/.config/waybar/style.css | 5 |
2 files changed, 11 insertions, 1 deletions
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": "<span color=\"#5b8277\"></span> {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, |