From 3ffb5cd335717b4250c71a1004b70b95a830c65c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:42 +0100 Subject: waybar: add disk module, heat-colour VOL, move window title to left --- dot_config/waybar/config.jsonc | 33 +++++++++++++++++++++++++++++++-- dot_config/waybar/style.css | 6 ++++++ 2 files changed, 37 insertions(+), 2 deletions(-) (limited to 'dot_config/waybar') diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 585fa38..7711ba0 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -3,13 +3,14 @@ "height": 24, "spacing": 0, - "modules-left": ["sway/workspaces", "sway/mode"], - "modules-center": ["sway/window"], + "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], + "modules-center": [], "modules-right": [ "pulseaudio", "cpu", "temperature", "custom/memory", + "disk", "custom/wifi", "network#bond", "battery", @@ -48,6 +49,24 @@ "tooltip": false, }, + "disk": { + "path": "/", + "unit": "GB", + "interval": 30, + "format": "DSK {specific_used:0.1f}G {percentage_used}%", + "format-low": "DSK {specific_used:0.1f}G {percentage_used}%", + "format-medium": "DSK {specific_used:0.1f}G {percentage_used}%", + "format-high": "DSK {specific_used:0.1f}G {percentage_used}%", + "format-critical": "DSK {specific_used:0.1f}G {percentage_used}%", + "states": { + "low": 0, + "medium": 30, + "high": 60, + "critical": 80, + }, + "tooltip-format": "{path}: {specific_used:0.1f}G / {specific_total:0.1f}G", + }, + "temperature": { "format": "{temperatureC}°C", "format-cool": "{temperatureC}°C", @@ -89,7 +108,17 @@ "pulseaudio": { "format": "VOL {volume}%", + "format-low": "VOL {volume}%", + "format-medium": "VOL {volume}%", + "format-high": "VOL {volume}%", + "format-critical": "VOL {volume}%", "format-muted": "MUTE", + "states": { + "low": 0, + "medium": 50, + "high": 80, + "critical": 95, + }, "scroll-step": 5, "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", }, diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index d63d8aa..59a41ff 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -36,11 +36,13 @@ window#waybar { #clock, #battery, #cpu, +#disk, #memory, #temperature, #network, #pulseaudio, #tray, +#window, #custom-memory, #custom-wifi { padding: 0 6px; @@ -54,6 +56,10 @@ window#waybar { color: #8ec07c; /* aqua */ } +#disk { + color: #d79921; /* ochre */ +} + #temperature { color: #fe8019; /* orange */ } -- cgit v1.2.3-70-g09d2