mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-11-14 03:08:06 +01:00
140 lines
2.8 KiB
CSS
140 lines
2.8 KiB
CSS
/* 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;
|
|
color: #a6e3a1 /* green */;
|
|
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 {
|
|
background-color: #282828 /* border color */;
|
|
}
|
|
|
|
#workspaces button {
|
|
padding: 0 5px;
|
|
background-color: transparent;
|
|
color: #a6e3a1 /* green */;
|
|
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 {
|
|
color: #63cc5a /* jade */;
|
|
}
|
|
|
|
#workspaces button.focused {
|
|
background-color: #333333 /* steel */;
|
|
/* box-shadow: inset 0 -3px #ffffff; */
|
|
}
|
|
|
|
#workspaces button.urgent {
|
|
background-color: #fe4f58 /* vermilion */;
|
|
color: #f5f5f5; /* white */
|
|
}
|
|
|
|
#window,
|
|
#clock,
|
|
#battery,
|
|
#backlight,
|
|
#wireplumber,
|
|
#tray,
|
|
#mpris {
|
|
padding: 0 10px;
|
|
background-color: #282828 /* border color */;
|
|
color: #a6e3a1 /* green */;
|
|
}
|
|
|
|
/* 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 {
|
|
background-color: #a6e3a1 /* green */;
|
|
color: #282828 /* border color */;
|
|
}
|
|
|
|
@keyframes blink {
|
|
to {
|
|
background-color: #282828 /* border color */;
|
|
color: #a6e3a1 /* green */;
|
|
}
|
|
}
|
|
|
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
|
#battery.critical:not(.charging) {
|
|
background-color: #fe4f58 /* vermilion */;
|
|
color: #f5f5f5; /* white */
|
|
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 {
|
|
background-color: #e3ac2d /* amber */;
|
|
color: #282828 /* border color */;
|
|
}
|
|
|
|
#tray menu {
|
|
font-family: sans-serif;
|
|
}
|