waybar: add cpu/gpu/disk usage
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -34,6 +34,13 @@ window.eDP-1 * {
|
||||
color: @primary;
|
||||
}
|
||||
|
||||
#cpu,
|
||||
#custom-gpu-usage,
|
||||
#disk {
|
||||
margin: 6px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#tray,
|
||||
#pulseaudio,
|
||||
#language,
|
||||
|
||||
Reference in New Issue
Block a user