dotfiles/waybar/style.css
2023-08-27 15:22:06 +02:00

247 lines
4.0 KiB
CSS

@import "mocha.css";
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
}
window#waybar {
background-color: shade(@base, 0.9);
border: 2px solid alpha(@mantle, 0.3);
border-bottom: 3px solid alpha(@crust, 0.5);
color: @text;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
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;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#submap {
padding: 0 10px;
margin: 0 4px;
background-color: @peach;
color: black;
}
#dunst {
}
#workspaces button:hover {
background: alpha(@overlay0, 0.2);
}
#workspaces button.active {
background-color: @overlay1;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: @red;
}
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#custom-network,
#custom-inhibit,
#custom-dunst,
#pulseaudio,
#wireplumber,
#custom-media,
#custom-wifionice,
#tray,
#mode,
#idle_inhibitor,
#custom-spotify,
#scratchpad,
#mpd {
padding: 0 10px;
color: #ffffff;
border-bottom: 3px solid alpha(@crust, 0.5);
}
#window,
#workspaces {
margin: 0 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#clock {
background-color: #64727D;
}
#battery {
background-color: @yellow;
color: black;
}
#battery.charging, #battery.plugged {
color: black;
background-color: @green;
}
@keyframes blink {
to {
background-color: @yellow;
color: black;
}
}
#battery.critical:not(.charging) {
background-color: @red;
color: black;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#custom-wifionice {
background-color: @red;
color: black;
}
label:focus {
background-color: black;
}
#cpu {
background-color: @green;
color: black;
}
#memory {
background-color: @lavender;
}
#disk {
background-color: @lavender;
}
#backlight {
background-color: @overlay1;
}
#custom-network {
background-color: @sky;
color: black;
}
#network.disconnected {
background-color: @overlay2;
}
#pulseaudio {
background-color: @yellow;
color: black;
}
#pulseaudio.muted {
background-color: @overlay2;
color: @text;
}
#custom-media {
background-color: @base;
color: @text;
min-width: 100px;
}
#custom-spotify {
padding: 0 10px;
margin: 0 4px;
background-color: @green;
color: black;
}
#temperature {
background-color: @peach;
color: black;
}
#temperature.critical {
background-color: @red;
}
#tray {
background-color: @base;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: @red;
}
#idle_inhibitor {
background-color: @base;
}
#idle_inhibitor.activated {
background-color: @lavender;
color: #2d3436;
}