aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:42 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:42 +0100
commit3ffb5cd335717b4250c71a1004b70b95a830c65c (patch)
treeeb3f36cef58bcb634dfa71fb3b94bf6804cc0f0d /dot_config
parent88906113038c1b4986cfc3bf6afc0fb35c5e4127 (diff)
downloaddotfiles-3ffb5cd335717b4250c71a1004b70b95a830c65c.tar.gz
dotfiles-3ffb5cd335717b4250c71a1004b70b95a830c65c.tar.bz2
dotfiles-3ffb5cd335717b4250c71a1004b70b95a830c65c.zip
waybar: add disk module, heat-colour VOL, move window title to left
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/waybar/config.jsonc33
-rw-r--r--dot_config/waybar/style.css6
2 files changed, 37 insertions, 2 deletions
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 <span color='#b8bb26'>{percentage_used}%</span>",
+ "format-medium": "DSK {specific_used:0.1f}G <span color='#fabd2f'>{percentage_used}%</span>",
+ "format-high": "DSK {specific_used:0.1f}G <span color='#fe8019'>{percentage_used}%</span>",
+ "format-critical": "DSK {specific_used:0.1f}G <span color='#fb4934'>{percentage_used}%</span>",
+ "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": "<span color='#b8bb26'>{temperatureC}°C</span>",
@@ -89,7 +108,17 @@
"pulseaudio": {
"format": "VOL {volume}%",
+ "format-low": "VOL <span color='#b8bb26'>{volume}%</span>",
+ "format-medium": "VOL <span color='#fabd2f'>{volume}%</span>",
+ "format-high": "VOL <span color='#fe8019'>{volume}%</span>",
+ "format-critical": "VOL <span color='#fb4934'>{volume}%</span>",
"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 */
}