dotfiles/waybar/.config/waybar/style.css

222 lines
3.9 KiB
CSS

/* solarized colorscheme */
/* base colors */
@define-color base03 #002b36;
@define-color base02 #073642;
@define-color base01 #586e75;
@define-color base00 #657b83;
@define-color base0 #839496;
@define-color base1 #93a1a1;
@define-color base2 #eee8d5;
@define-color base3 #fdf6e3;
/* accent colors */
@define-color brblack @base03;
@define-color black @base02;
@define-color yellow #b58900;
@define-color orange #cb4b16;
@define-color red #dc322f;
@define-color magenta #d33682;
@define-color violet #6c71c4;
@define-color blue #268bd2;
@define-color cyan #2aa198;
@define-color green #859900;
@define-color white @base2;
@define-color brwhite @base3;
@define-color dimmed @base0;
/* colorscheme done */
* {
border: none;
border-radius: 0;
/* `ttf-font-awesome` is required to be installed for icons */
font-family: "Fira Sans Condensed SemiBold", "Font Awesome 6 Free Solid", "Font Awesome 6 Free Regular", "Font Awesome 6 Brands Regular", sans-serif;
font-size: 16px;
min-height: 0;
}
window#waybar {
background-color: alpha(@base03, 0.65);
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.5;
}
#workspaces {
margin: 0 5px;
}
#workspaces button {
background: transparent;
padding: 0px;
margin: 0 2px;
color: @dimmed;
}
#workspaces button:hover {
color: @white;
box-shadow: inset 0 3px @dimmed;
}
#workspaces button.focused {
color: @blue;
box-shadow: inset 0 3px @blue;
}
#workspaces button.urgent {
color: @orange;
box-shadow: inset 0 3px @orange;
}
#mode {
box-shadow: inset 0 3px @cyan;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#tray,
#mode,
#idle_inhibitor,
#mpd,
#custom-ivpn,
#custom-usb {
padding: 0 4px;
margin: 0 4px;
color: @white;
}
/* 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;
}
#backlight {
color: @cyan;
box-shadow: inset 0 3px @cyan;
}
#battery {
box-shadow: inset 0 3px @white;
}
#battery.charging, #battery.plugged {
color: @green;
box-shadow: inset 0 3px @green;
background-color: transparent;
}
@keyframes blink {
to {
box-shadow: inset 0 3px @brblack;
background-color: @brwhite;
color: @brblack;
}
}
#battery.warning:not(.charging) {
background-color: @yellow;
}
#battery.critical:not(.charging) {
box-shadow: inset 0 3px @brwhite;
background-color: @red;
color: @brwhite;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: @black;
}
#cpu {
color: @green;
box-shadow: inset 0 3px @green;
}
#memory {
color: @violet;
box-shadow: inset 0 3px @violet;
}
#network {
color: @blue;
box-shadow: inset 0 3px @blue;
}
#network.disconnected {
color: @red;
box-shadow: inset 0 3px @red;
}
#pulseaudio {
color: @yellow;
box-shadow: inset 0 3px @yellow;
}
#pulseaudio.muted {
color: @orange;
box-shadow: inset 0 3px @orange;
}
#tray {
box-shadow: inset 0 3px @cyan;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: @red;
}
#idle_inhibitor {
color: @dimmed;
}
#idle_inhibitor.activated {
color: @violet;
box-shadow: inset 0 3px @violet;
}
#custom-ivpn {
color: @red;
box-shadow: inset 0 3px @red;
}
#custom-ivpn.connected {
color: @green;
box-shadow: inset 0 3px @green;
}
#custom-usb {
color: @orange;
box-shadow: inset 0 3px @orange;
}
#custom-usb.unprotected {
color: @red;
box-shadow: inset 0 3px @red;
}