dotfiles/.config/waybar/style.css

141 lines
2.8 KiB
CSS
Raw Normal View History

2024-08-15 20:36:20 +02:00
/* https://github.com/OriginCode/dotfiles/blob/0093b62068c36f1ca89deb1514b6b2e0c6c3b1a9/waybar/.config/waybar/style.css */
* {
font-size: 14px;
border-radius: 5px;
}
window#waybar {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, monospace;
background-color: transparent;
border-bottom: 0px;
2024-08-16 10:37:31 +02:00
color: #a6e3a1 /* green */;
2024-08-15 20:36:20 +02:00
transition-property: background-color;
transition-duration: 0.5s;
}
window#waybar.hidden {
opacity: 0.2;
}
window#waybar.empty #window {
background-color: transparent;
}
.modules-right {
margin: 10px 10px 0 0;
}
.modules-center {
margin: 10px 0 0 0;
}
.modules-left {
margin: 10px 0 0 10px;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
/* box-shadow: inset 0 -3px transparent; */
border: none;
}
#workspaces {
2024-08-16 10:37:31 +02:00
background-color: #282828 /* border color */;
2024-08-15 20:36:20 +02:00
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
2024-08-16 10:37:31 +02:00
color: #a6e3a1 /* green */;
2024-08-15 20:36:20 +02:00
border-radius: 0;
}
#workspaces button:first-child {
border-radius: 5px 0 0 5px;
}
#workspaces button:last-child {
border-radius: 0 5px 5px 0;
}
#workspaces button:hover {
2024-08-16 10:37:31 +02:00
color: #63cc5a /* jade */;
2024-08-15 20:36:20 +02:00
}
#workspaces button.focused {
2024-08-16 10:37:31 +02:00
background-color: #333333 /* steel */;
2024-08-15 20:36:20 +02:00
/* box-shadow: inset 0 -3px #ffffff; */
}
#workspaces button.urgent {
2024-08-16 10:37:31 +02:00
background-color: #fe4f58 /* vermilion */;
color: #f5f5f5; /* white */
2024-08-15 20:36:20 +02:00
}
#window,
#clock,
#battery,
#backlight,
#wireplumber,
#tray,
2024-08-16 10:37:31 +02:00
#mpris {
2024-08-15 20:36:20 +02:00
padding: 0 10px;
2024-08-16 10:37:31 +02:00
background-color: #282828 /* border color */;
color: #a6e3a1 /* green */;
2024-08-15 20:36:20 +02:00
}
/* 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;
}
#battery.charging,
#battery.plugged {
2024-08-16 10:37:31 +02:00
background-color: #a6e3a1 /* green */;
color: #282828 /* border color */;
2024-08-15 20:36:20 +02:00
}
@keyframes blink {
to {
2024-08-16 10:37:31 +02:00
background-color: #282828 /* border color */;
color: #a6e3a1 /* green */;
2024-08-15 20:36:20 +02:00
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
2024-08-16 10:37:31 +02:00
background-color: #fe4f58 /* vermilion */;
color: #f5f5f5; /* white */
2024-08-15 20:36:20 +02:00
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
}
#mpris.playing {
2024-08-16 10:37:31 +02:00
background-color: #e3ac2d /* amber */;
color: #282828 /* border color */;
2024-08-15 20:36:20 +02:00
}
#tray menu {
font-family: sans-serif;
}