dotfiles/waybar/style.css
2025-04-09 21:11:14 +02:00

169 lines
2.6 KiB
CSS

@import "macchiato.css";
window#waybar.full {
background: @bar-bg;
}
window#waybar.float {
background-color: transparent;
}
* {
font-family: "Ubuntu Mono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
opacity: 0.9;
min-height: 0px;
}
window#waybar {
background-color: rgba(0, 0, 0, 0);
border-radius: 13px;
transition-property: background-color;
transition-duration: .5s;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
}
#workspaces {
padding-top: 2px;
padding-left: 5px;
padding-right: 5px;
}
#workspaces button {
padding: 0px 0px;
background-color: white;
color: #000000;
border-radius: 50px;
border-color: transparent;
border: 1px solid;
border-color: transparent;
}
#workspaces button.empty {
color: white;
background-color: transparent;
}
#workspaces button.active {
color: black;
font-weight: bold;
background-color: @green;
}
#workspaces button.active.empty {
font-weight: bold;
background-color: transparent;
border-color: @green;
color: @green;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.active:hover {
background-color: @green;
}
#workspaces button.focused {
background-color: @lavender;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#temperature,
#network,
#pulseaudio,
#idle_inhibitor,
#custom-cpu,
#custom-mem {
padding: 0 5px;
}
#custom-cpu {
color: @red;
}
#custom-mem {
color: @blue;
}
#network {
color: @yellow;
}
#temperature {
color: @sky;
}
#battery {
color: @green;
}
#clock {
color: @white;
}
#window {
color: @rosewater;
}
#idle_inhibitor {
color: @teal;
}
.modules-right {
background-color: @base;
border-radius: 15px;
}
#battery.charging,
#battery.plugged {
color: @sapphire;
}
@keyframes blink {
to {
color: #000000;
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}