dotfiles/waybar/style.css
2024-02-27 02:33:56 +01:00

243 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;
color: @text;
}
window#waybar {
background-color: shade(@base, 0.9);
/* border: 2px solid alpha(@mantle, 0.3); */
border-bottom: 1px solid alpha(@crust, 0.5);
color: @text;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
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: @text;
}
#submap {
padding: 0 10px;
margin: 0 4px;
background-color: @peach;
color: @base;
}
#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: @bad;
}
#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,
#mpd,
#scratchpad,
#custom-fsi,
#custom-fsm,
#mpd {
padding: 0 10px;
color: @text;
background-color: @off;
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;
}
.modules-center {
background-color: @surface0;
}
#memory,
#clock,
#memory,
#disk {
background-color: @off;
color: @text;
}
#idle_inhibitor.activated {
background-color: @good;
color: @base;
}
#battery {
background-color: @off;
}
#battery.charging, #battery.plugged {
color: @base;
background-color: @good;
}
@keyframes blink {
to {
background-color: @yellow;
color: @base;
}
}
#battery.critical:not(.charging) {
background-color: @bad;
color: @base;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#custom-fsi.fs-closed,
#custom-fsm.fs-closed,
#custom-wifionice {
background-color: @off;
}
#custom-fsi.fs-unknown,
#custom-fsm.fs-unknown {
background-color: @bad;
color: @base;
}
label:focus {
background-color: @base;
}
#custom-fsi.fs-open,
#custom-fsm.fs-open {
background-color: @good;
color: @base;
}
#backlight {
background-color: @off;
}
#custom-network {
background-color: @off;
}
#network.disconnected {
background-color: @bad;
color: @base;
}
#pulseaudio {
background-color: @off;
}
#custom-dunst.disabled,
#pulseaudio.source-muted {
background-color: @bad;
color: @base;
}
#custom-media {
background-color: @off;
}
#mpd.playing,
#custom-spotify {
background-color: @good;
color: @base;
}
#mpd.stopped,
#mpd.paused {
background-color: @off;
}
#temperature {
background-color: @off;
}
#temperature.critical {
background-color: @bad;
}
#tray {
background-color: @base;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: @bad;
}