summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-02-13 01:58:20 +0100
committerRobert Günzler <r@gnzler.io>2020-02-13 01:58:20 +0100
commit999949e58aafeb54a2d0531f65a043ec4d88bf75 (patch)
treea57e451db99e5d431121130f27b1d787eaa4a7a0
parent1971190ca57f18d60309c51f025e7c56934afeae (diff)
waybar: Add disk modules for root and home paritions
-rw-r--r--.config/waybar/config10
-rw-r--r--.config/waybar/style.css8
2 files changed, 17 insertions, 1 deletions
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": "({:<small>%Z</small> %H:%M})",
 	"tooltip-format": "{:%Z %z}"
     },
+    "disk#root": {
+	"path": "/",
+	"format": "<small>/ </small>{percentage_used}%"
+    },
+    "disk#home": {
+	"path": "/home",
+	"format": "<small>/home </small>{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 {