[waybar] added cpu, memory and disk indicator

This commit is contained in:
Simon Cornet 2024-03-31 23:07:54 +02:00
parent d54984a4d8
commit a420a6fd3b
2 changed files with 30 additions and 5 deletions

View File

@ -36,7 +36,10 @@ tooltip {
#battery,
#backlight,
#clock,
#cpu,
#disk,
#network,
#memory,
#pulseaudio,
#workspaces,
#custom-hypridle,
@ -86,24 +89,26 @@ tooltip {
#backlight,
#battery,
#custom-wireguard,
#cpu,
#memory,
#network,
#pulseaudio {
border-radius: 0px 0px 0px 0px;
font-size: 20px;
font-size: 18px;
margin-right: -3px;
margin-left: 0px;
}
#custom-wireguard {
#disk {
border-radius: 10px 0px 0px 10px;
font-size: 20px;
font-size: 18px;
margin-left: 10px;
margin-right: 0px;
}
#custom-hypridle {
border-radius: 0px 10px 10px 0px;
font-size: 20px;
font-size: 18px;
margin-left: 0px;
margin-right: 10px;
}

View File

@ -21,6 +21,9 @@
"modules-right": [
"tray",
"disk",
"cpu",
"memory",
"custom/wireguard",
"network",
"pulseaudio",
@ -59,7 +62,12 @@
"timezones": ["Europe/Amsterdam", "Asia/Kolkata"],
"actions": { "on-click": "tz_down" },
"tooltip-format": "<tt><small>{calendar}</small></tt>"
},
},
"cpu": {
"interval": 2,
"format": " {usage:2}%"
},
"custom/hypridle": {
"interval": 1,
@ -75,6 +83,12 @@
"on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch"
},
"disk": {
"interval": 10,
"path": "/",
"format": "󱂵 {percentage_used}%",
},
"hyprland/window": {
"format": "{}"
},
@ -97,6 +111,12 @@
}
},
"memory": {
"interval": 2,
"format": " {}%",
"tooltip-format": "{used:0.1f}GB / {total:0.1f}GB",
},
"network": {
"tooltip": true,
"format-wifi": "󰣶 ",