feat(waybar): add RAM usage module

This commit is contained in:
2026-02-09 14:49:15 +00:00
parent ad85c16268
commit 770925b66a
2 changed files with 14 additions and 5 deletions

View File

@@ -7,7 +7,8 @@
"modules-left": [
"clock",
"cpu"
"cpu",
"memory"
],
"modules-center": ["hyprland/workspaces"],
@@ -46,7 +47,10 @@
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
},
"memory": {
"interval": 1,
"format": "{used:0.1f}G/{total:0.1f}G "
},
"pulseaudio": {
"format": "{icon} {volume}%",

View File

@@ -23,7 +23,8 @@
/* --- Left Modules (Individual, Fully Rounded Blocks - With Horizontal Spacing & Simple Hover) --- */
#workspaces,
#cpu {
#cpu,
#memory{
background-color: @Buttons;
padding: 0.3rem 0.7rem;
margin: 5px 0px; /* 5px top/bottom margin, 0px left/right (base for individual control) */
@@ -35,6 +36,10 @@
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
#memory {
margin: 5px 10px;
}
#workspaces {
padding: 0px;
border-radius: 10px;
@@ -42,7 +47,7 @@
/* Simple Hover effects for individual left modules - BRIGHTER COLOR */
#cpu:hover {
#cpu:hover, #memory:hover {
background-color: @Buttonshover; /* Brighter highlight */
}
@@ -94,7 +99,7 @@
background-color: @Buttonshover;
}
#cpu {
#cpu, #memory {
color: @Text;
}