waybar: add cpu/gpu/disk usage
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"sway/workspaces",
|
"sway/workspaces",
|
||||||
|
"cpu",
|
||||||
|
"custom/gpu-usage",
|
||||||
|
"disk",
|
||||||
"sway/mode"
|
"sway/mode"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
@@ -19,6 +22,18 @@
|
|||||||
"format": "--{}--",
|
"format": "--{}--",
|
||||||
"tooltip": false
|
"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": {
|
"pulseaudio": {
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
|
|||||||
@@ -34,6 +34,13 @@ window.eDP-1 * {
|
|||||||
color: @primary;
|
color: @primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cpu,
|
||||||
|
#custom-gpu-usage,
|
||||||
|
#disk {
|
||||||
|
margin: 6px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#tray,
|
#tray,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#language,
|
#language,
|
||||||
|
|||||||
Reference in New Issue
Block a user