1
0

waybar custom mod for disks

This commit is contained in:
2025-01-27 13:01:55 +01:00
parent c751064eb1
commit bf8721a344
2 changed files with 30 additions and 6 deletions
+21 -4
View File
@@ -2,7 +2,7 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"spacing": 0, "spacing": 0,
"modules-left": ["cpu", "disk", "disk#sda", "disk#nocturnal"], "modules-left": ["cpu", "disk", "disk#sda", "custom/nocturnal", "custom/azura"],
"modules-center": ["sway/workspaces"], "modules-center": ["sway/workspaces"],
"modules-right": ["idle_inhibitor", "tray", "clock"], "modules-right": ["idle_inhibitor", "tray", "clock"],
"sway/workspaces": { "sway/workspaces": {
@@ -30,8 +30,19 @@
"class<teams-for-linux>": "󰊻", "class<teams-for-linux>": "󰊻",
"class<spotify>": "", "class<spotify>": "",
"class<glava>": "󰝚", "class<glava>": "󰝚",
"class<thunderbird>": "󰇰"
} }
}, },
"custom/nocturnal": {
"exec": "~/.config/waybar/disk.sh /nasfw",
"interval": 60,
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-9pt\"></span> {text}"
},
"custom/azura": {
"exec": "~/.config/waybar/disk.sh /NAS",
"interval": 60,
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-7pt\">󰖔</span> {text}"
},
"custom/recording": { "custom/recording": {
"format": "●", "format": "●",
"exec": "pgrep wf-recorder", "exec": "pgrep wf-recorder",
@@ -46,7 +57,7 @@
}, },
"disk": { "disk": {
"path": "/", "path": "/",
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-8pt\">󱊟</span> {free}", "format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-8pt\"></span> {free}",
"tooltip-format": "{free} available on {path}" "tooltip-format": "{free} available on {path}"
}, },
"disk#sda": { "disk#sda": {
@@ -57,8 +68,14 @@
}, },
"disk#nocturnal": { "disk#nocturnal": {
"path": "/nasfw", "path": "/nasfw",
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-9pt\">󰣳</span> {free}", "format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-9pt\"></span> {free}",
"interval": 5, "interval": 60,
"tooltip-format": "{free} available on {path}"
},
"disk#azura": {
"path": "/NAS",
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-7pt\">󰖔</span> {free}",
"interval": 60,
"tooltip-format": "{free} available on {path}" "tooltip-format": "{free} available on {path}"
}, },
"idle_inhibitor": { "idle_inhibitor": {
+9 -2
View File
@@ -63,6 +63,8 @@ window {
#custom-gpu, #custom-gpu,
#custom-transmission, #custom-transmission,
#custom-recording, #custom-recording,
#custom-azura,
#custom-nocturnal,
#network, #network,
#wireplumber { #wireplumber {
padding: 0 8px; padding: 0 8px;
@@ -75,7 +77,9 @@ window {
margin-right: 8px; margin-right: 8px;
} }
#disk { #disk,
#custom-azura,
#custom-nocturnal {
border-radius: 8px; border-radius: 8px;
margin-right: 8px; margin-right: 8px;
background: @color3; background: @color3;
@@ -88,7 +92,10 @@ window {
color: #fee; color: #fee;
} }
#idle_inhibitor { #idle_inhibitor {
font-size: 32px; font-size: 28px;
}
#idle_inhibitor.activated {
} }
#clock { #clock {