dots/stow/.config/waybar/style.css

295 lines
4.8 KiB
CSS

@import "colors.css";
* {
/* `otf-font-awesome` is required to be installed for icons */
/* font-family: ComicShannsMono Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif;*/
font-size: 13px;
border-radius: 10px;
transition-duration: 0.5s;
}
.module {
margin-left: 5px;
margin-right: 5px;
margin-top: 10px;
}
window#waybar {
color: @primary;
background-color: transparent;
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;
}
*/
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 {
background-color: @background;
color: @primary;
border-radius: 10px;
}
#workspaces button {
color: @primary;
padding: 0 5px;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd {
padding: 0 10px;
background-color: @background;
color: @primary;
}
#window,
#workspaces {
}
#clock {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
margin-right: 0px;
background-color: @background;
color: @primary;
}
#custom-swaync {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
margin-left: 0px;
background-color: @primary;
color: @background;
padding: 10px;
}
#battery {
background-color: @background;
color: @secondary;
}
#battery.charging, #battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #ffffff;
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;
}
#cpu {
background-color: @primary;
color: #000000;
}
#memory {
background-color: @background;
color: @secondary;
}
#disk {
background-color: @background;
color: @tertiary;
}
#backlight {
background-color: @background;
color: @tertiary;
}
#network {
background-color: @background;
color: @secondary;
}
#network.disconnected {
background-color: @background;
color: @error;
}
#wireplumber {
background-color: @background;
color: @tertiary;
/* color: @primary;*/
}
#wireplumber.muted {
background-color: @background;
color: @error;
}
#custom-media {
background-color: @background;
color: @tertiary;
min-width: 100px;
}
#tray {
background-color: @background;
color: @primary;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: @primary;
}
/*
* hover variants
*/
#clock:hover {
background-color: @primary;
color: @background;
}
#custom-swaync:hover {
background-color: @background;
color: @primary;
}
#battery:hover {
background-color: @secondary;
color: @background;
}
#cpu:hover {
background-color: @primary;
color: @background;
}
#memory:hover {
background-color: @secondary;
color: @background;
}
#disk:hover {
background-color: @background;
color: @tertiary;
}
#backlight:hover {
background-color: @tertiary;
color: @background;
}
#network:hover {
background-color: @secondary;
color: @background;
}
#network.disconnected:hover {
background-color: @error;
color: @background;
}
#wireplumber:hover {
background-color: @tertiary;
color: @background;
}
#wireplumber.muted:hover {
background-color: @error;
color: @background;
}
#custom-media:hover {
background-color: @tertiary;
color: @background;
}
#tray:hover {
background-color: @primary;
color: @background;
}
#privacy:hover {
padding: 0;
}
#privacy-item:hover {
background-color: @primary;
color: @background;
}