Updated config

This commit is contained in:
2025-02-02 11:05:39 +01:00
parent ffd1fd767a
commit 86f53356d1
12 changed files with 58 additions and 47 deletions

View File

@ -1,6 +1,6 @@
{
"layer": "top",
"position": "bottom",
"modules-right": ["cpu", "custom/gpu", "memory", "disk", "wireplumber", "clock"],
"modules-right": ["cpu", "custom/gpu", "memory", "disk", "custom/processes", "wireplumber", "clock"],
"include": "~/.config/waybar/modules.jsonc",
}

View File

@ -1,37 +1,45 @@
{
"cpu": {
"interval": 2,
"format": "CPU: {usage}%",
"format": "[CPU] {usage}%",
"on-click": "$TERMINAL -e btop",
},
"custom/gpu": {
"interval": 2,
"format": "GPU: {}%",
"format": "[GPU] {}%",
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
"return-type": "",
"on-click": "$TERMINAL -e nvtop",
},
"memory": {
"interval": 2,
"format": "MEM: {used} GiB",
"format": "[MEM] {used} G",
"on-click": "$TERMINAL -e btop",
},
"disk": {
"interval": 30,
"format": "SSD: {specific_used:0.0f} GiB",
"format": "[SSD] {specific_used:0.0f} G",
"path": "/",
"unit": "GiB",
"on-click": "$TERMINAL -e dua i /",
},
"custom/processes": {
"interval": 2,
"format": "[PRC] {}",
"exec": "ps --ppid 2 -p 2 --deselect --no-headers | wc -l",
"return-type": "",
"tooltip-format": "Number of running processes",
"on-click": "$TERMINAL -e btop",
},
"wireplumber": {
"format": "VOL: {volume}%",
"format": "[VOL] {volume}%",
"format-muted": "",
"scroll-step": 5,
"on-click": "easyeffects",
},
"clock": {
"interval": 60,
"format": "{:%H:%M}",
"format": "[CLK] {:%H:%M}",
"tooltip-format": "{:%A, %Y-%m-%d}",
"on-click": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy",
},

View File

@ -9,7 +9,7 @@
background: rgba(38, 41, 44, 0.5);
}
#cpu, #custom-gpu, #memory, #disk, #wireplumber, #clock {
#cpu, #custom-gpu, #memory, #disk, #custom-processes, #wireplumber, #clock {
color: rgba(255, 255, 255, 0.8);
border-radius: 3px;
padding: 4px 8px;