fix: no colors set for cpu, mem or temp on waybar

This commit is contained in:
2024-12-04 20:15:55 +05:00
parent 86045019ba
commit 5936339588
2 changed files with 62 additions and 48 deletions

View File

@@ -18,7 +18,6 @@
"cpu", "cpu",
"memory", "memory",
"temperature", "temperature",
"keyboard-state",
"battery", "battery",
"clock", "clock",
"tray" "tray"
@@ -43,7 +42,7 @@
"keyboard-state": { "keyboard-state": {
"numlock": true, "numlock": true,
"capslock": true, "capslock": true,
"format": "{name} {icon}", "format": "{name} {icon} ",
"format-icons": { "format-icons": {
"locked": "", "locked": "",
"unlocked": "" "unlocked": ""

View File

@@ -1,57 +1,57 @@
@import "mocha.css"; @import "mocha.css";
* { * {
font-family: "ComicCodeLigatures"; font-family: "ComicCodeLigatures";
font-size: 16px; font-size: 16px;
min-height: 0; min-height: 0;
font-weight: bold; font-weight: bold;
} }
window#waybar { window#waybar {
background: transparent; background: transparent;
background-color: @crust; background-color: @crust;
color: @overlay0; color: @overlay0;
transition-property: background-color; transition-property: background-color;
transition-duration: 0.1s; transition-duration: 0.1s;
border-bottom: 1px solid @overlay1; border-bottom: 1px solid @overlay1;
} }
#window { #window {
margin: 8px; margin: 8px;
padding-left: 8; padding-left: 8;
padding-right: 8; padding-right: 8;
} }
button { button {
box-shadow: inset 0 -3px transparent; box-shadow: inset 0 -3px transparent;
border: none; border: none;
border-radius: 0; border-radius: 0;
} }
button:hover { button:hover {
background: inherit; background: inherit;
color: @mauve; color: @mauve;
border-top: 2px solid @mauve; border-top: 2px solid @mauve;
} }
#workspaces button { #workspaces button {
padding: 0 4px; padding: 0 4px;
} }
#workspaces button.focused { #workspaces button.focused {
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
color: @rosewater; color: @rosewater;
border-top: 2px solid @rosewater; border-top: 2px solid @rosewater;
} }
#workspaces button.active { #workspaces button.active {
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
color: @mauve; color: @mauve;
border-top: 2px solid @mauve; border-top: 2px solid @mauve;
} }
#workspaces button.urgent { #workspaces button.urgent {
background-color: #eb4d4b; background-color: #eb4d4b;
} }
#pulseaudio, #pulseaudio,
@@ -75,53 +75,68 @@ button:hover {
padding-right: 4px; padding-right: 4px;
} }
#cpu {
color: @mauve;
border-bottom: 2px solid @mauve;
}
#memory {
color: @teal;
border-bottom: 2px solid @teal;
}
#temperature {
color: @red;
border-bottom: 2px solid @red;
}
#clock { #clock {
color: @maroon; color: @maroon;
border-bottom: 2px solid @maroon; border-bottom: 2px solid @maroon;
} }
#clock.date { #clock.date {
color: @mauve; color: @mauve;
border-bottom: 2px solid @mauve; border-bottom: 2px solid @mauve;
} }
#pulseaudio { #pulseaudio {
color: @blue; color: @blue;
border-bottom: 2px solid @blue; border-bottom: 2px solid @blue;
} }
#network { #network {
color: @yellow; color: @yellow;
border-bottom: 2px solid @yellow; border-bottom: 2px solid @yellow;
} }
#idle_inhibitor { #idle_inhibitor {
margin-right: 12px; margin-right: 12px;
color: #7cb342; color: #7cb342;
} }
#idle_inhibitor.activated { #idle_inhibitor.activated {
color: @red; color: @red;
} }
#battery { #battery {
color: @green; color: @green;
border-bottom: 2px solid @green; border-bottom: 2px solid @green;
} }
/* If workspaces is the leftmost module, omit left margin */ /* If workspaces is the leftmost module, omit left margin */
.modules-left>widget:first-child>#workspaces { .modules-left>widget:first-child>#workspaces {
margin-left: 0; margin-left: 0;
} }
/* If workspaces is the rightmost module, omit right margin */ /* If workspaces is the rightmost module, omit right margin */
.modules-right>widget:last-child>#workspaces { .modules-right>widget:last-child>#workspaces {
margin-right: 0; margin-right: 0;
} }
#custom-vpn { #custom-vpn {
color: @lavender; color: @lavender;
border-radius: 15px; border-radius: 15px;
padding-left: 6px; padding-left: 6px;
padding-right: 6px; padding-right: 6px;
} }