waybar: add cpu/gpu/disk usage

This commit is contained in:
2024-05-14 19:40:07 +03:00
parent 414bf74da9
commit 4b32067590
2 changed files with 22 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
"position": "top",
"modules-left": [
"sway/workspaces",
"cpu",
"custom/gpu-usage",
"disk",
"sway/mode"
],
"modules-right": [
@@ -19,6 +22,18 @@
"format": "--{}--",
"tooltip": false
},
"cpu": {
"format": "CPU: {usage}%",
"interval": 1
},
"custom/gpu-usage": {
"exec": "cat /sys/class/hwmon/hwmon2/device/gpu_busy_percent",
"format": "GPU: {}%",
"interval": 1
},
"disk": {
"format": "Disk: {used}/{total}"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-icons": [

View File

@@ -34,6 +34,13 @@ window.eDP-1 * {
color: @primary;
}
#cpu,
#custom-gpu-usage,
#disk {
margin: 6px;
padding: 0;
}
#tray,
#pulseaudio,
#language,