From 999949e58aafeb54a2d0531f65a043ec4d88bf75 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 13 Feb 2020 01:58:20 +0100 Subject: waybar: Add disk modules for root and home paritions --- .config/waybar/config | 10 +++++++++- .config/waybar/style.css | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.config/waybar/config b/.config/waybar/config index a6dd28c..7d6b519 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -6,7 +6,7 @@ "modules-left": ["sway/mode", "sway/workspaces", "sway/window", "custom/media", "custom/toggl"], "modules-center": ["clock#local", "clock#utc"], - "modules-right": ["cpu", "memory", "temperature", "idle_inhibitor", "backlight", "pulseaudio", "network#wg", "network", "battery", "tray"], + "modules-right": ["cpu", "memory", "disk#root", "disk#home", "temperature", "idle_inhibitor", "backlight", "pulseaudio", "network#wg", "network", "battery", "tray"], "sway/workspaces": { "disable-scroll": true, "all-outputs": false, @@ -56,6 +56,14 @@ "format": "({:%Z %H:%M})", "tooltip-format": "{:%Z %z}" }, + "disk#root": { + "path": "/", + "format": "/ {percentage_used}%" + }, + "disk#home": { + "path": "/home", + "format": "/home {percentage_used}% " + }, "cpu": { "format": "{usage}% " }, diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 466921b..cc85e29 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -73,6 +73,7 @@ window#waybar.hidden { #battery, #cpu, #memory, +#disk, #temperature, #backlight, #network, @@ -100,6 +101,13 @@ window#waybar.hidden { color: @dimmed; } +#disk.root { + margin-right: 0; + padding-right: 0; +} +#disk.home { +} + #battery { } #battery.charging { -- cgit 1.4.1