feat: a seperate bar section for cpu, ram and swap

This commit is contained in:
2025-09-28 15:13:11 +03:00
parent 54e12f51aa
commit 07eb65488c
2 changed files with 81 additions and 32 deletions

View File

@@ -5,7 +5,7 @@
@define-color text-primary #ffffff;
@define-color text-secondary #888888;
@define-color accent-color #E96375;
@define-color accent-alt #f97385;
@define-color accent-alt #faa7b3;
@define-color warning #FFAA00;
@define-color danger #FF0000;
@define-color success #AAFFAA;
@@ -36,7 +36,7 @@ window#waybar.chromium {
}
/* Common module styling */
.modules-left, .modules-right, #mpd.playing, #mpd.paused {
.modules-right, #mpd.playing, #mpd.paused {
background: linear-gradient(to bottom, @bg-primary, @bg-secondary);
border: 3px solid @border-color;
border-top: none;
@@ -67,6 +67,16 @@ window#waybar.chromium {
}
/* Workspaces */
#workspaces {
background: linear-gradient(to bottom, @bg-primary, @bg-secondary);
border: 3px solid @border-color;
border-top: none;
border-left: none;
border-radius: 0 0 10px 0;
margin-right: 10px;
padding-right: 5px;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
@@ -92,6 +102,33 @@ window#waybar.chromium {
animation: blink-attention 2s infinite;
}
#cpu, #memory, #memory.swap {
background: linear-gradient(to bottom, @bg-primary, @bg-secondary);
margin: 0;
}
#cpu {
margin-left: 20px;
border: 3px solid @border-color;
border-top: none;
border-right: none;
border-radius: 0 0 0 10px;
}
#memory {
border: 3px solid @border-color;
border-left: none;
border-top: none;
border-right: none;
}
#memory.swap {
border: 3px solid @border-color;
border-left: none;
border-top: none;
border-radius: 0 0 10px 0;
}
/* Module base styling */
#clock, #battery, #cpu, #memory, #disk, #temperature, #backlight,
#network, #pulseaudio, #wireplumber, #custom-media, #tray, #mode,
@@ -102,7 +139,7 @@ window#waybar.chromium {
}
/* Hover effects */
#clock:hover, #battery:hover, #cpu:hover, #memory:hover, #disk:hover,
#clock:hover, #battery:hover, #disk:hover,
#temperature:hover, #backlight:hover, #network:hover, #pulseaudio:hover,
#wireplumber:hover, #custom-media:hover, #mode:hover, #idle_inhibitor:hover,
#scratchpad:hover, #power-profiles-daemon:hover {