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",
"position": "top",
"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-right": ["idle_inhibitor", "tray", "clock"],
"sway/workspaces": {
@@ -30,8 +30,19 @@
"class<teams-for-linux>": "󰊻",
"class<spotify>": "",
"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": {
"format": "●",
"exec": "pgrep wf-recorder",
@@ -46,7 +57,7 @@
},
"disk": {
"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}"
},
"disk#sda": {
@@ -57,8 +68,14 @@
},
"disk#nocturnal": {
"path": "/nasfw",
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-9pt\">󰣳</span> {free}",
"interval": 5,
"format": "<span size=\"30pt\" line_height=\"0.3\" baseline_shift=\"-9pt\"></span> {free}",
"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}"
},
"idle_inhibitor": {
+9 -2
View File
@@ -63,6 +63,8 @@ window {
#custom-gpu,
#custom-transmission,
#custom-recording,
#custom-azura,
#custom-nocturnal,
#network,
#wireplumber {
padding: 0 8px;
@@ -75,7 +77,9 @@ window {
margin-right: 8px;
}
#disk {
#disk,
#custom-azura,
#custom-nocturnal {
border-radius: 8px;
margin-right: 8px;
background: @color3;
@@ -88,7 +92,10 @@ window {
color: #fee;
}
#idle_inhibitor {
font-size: 32px;
font-size: 28px;
}
#idle_inhibitor.activated {
}
#clock {