168 lines
2.7 KiB
CSS
168 lines
2.7 KiB
CSS
|
|
@import "../../.cache/wal/colors-waybar.css";
|
|
|
|
@define-color default-workspace @color1;
|
|
@define-color active-workspace @color2;
|
|
|
|
* {
|
|
color: @foreground;
|
|
border-radius: 14px;
|
|
transition: 120ms ease-in;
|
|
}
|
|
|
|
window#waybar {
|
|
font-family: "Noto Sans", "Font Awesome", sans-serif;
|
|
font-size: 12px;
|
|
color: @foreground;
|
|
border-radius: 16px;
|
|
background: transparent;
|
|
}
|
|
|
|
window#waybar.hidden {
|
|
opacity: 0;
|
|
}
|
|
|
|
window > * > * {
|
|
padding: 2px;
|
|
}
|
|
|
|
.modules-left, .modules-center, .modules-right {
|
|
background: alpha(@background, .65);
|
|
}
|
|
|
|
.module, .widget {
|
|
padding: 0 10px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
widget > * {
|
|
padding-top: 1px;
|
|
padding-bottom: 1px;
|
|
}
|
|
|
|
widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
|
|
background: @color1;
|
|
}
|
|
|
|
button:hover {
|
|
background: @color1;
|
|
}
|
|
|
|
/* Workspaces */
|
|
#workspaces {
|
|
border-radius: 16px;
|
|
padding: 4px;
|
|
}
|
|
|
|
#workspaces button {
|
|
background: @color1;
|
|
border-radius: 24px;
|
|
padding: 0 4px;
|
|
margin: 0 2px;
|
|
}
|
|
|
|
#workspaces button.active {
|
|
background: @foreground;
|
|
padding-left: 14px;
|
|
padding-right: 14px;
|
|
}
|
|
|
|
#workspaces button.urgent {
|
|
animation: pick-attention;
|
|
animation-duration: .5s;
|
|
}
|
|
/***/
|
|
|
|
#custom-logo {
|
|
padding-left: 12px;
|
|
padding-right: 18px;
|
|
font-size: 15.2px;
|
|
transition: 110ms ease-in;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
#custom-notifications {
|
|
font-size: 16px;
|
|
padding-left: 10px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
#battery.charging, #battery.plugged {
|
|
color: @text;
|
|
background-color: @background;
|
|
}
|
|
|
|
#battery:not(.plugged):not(.charging) {
|
|
background-color: shade(@color1, .68);
|
|
}
|
|
|
|
#battery.critical:not(.charging) {
|
|
background-color: @color1;
|
|
color: @foreground;
|
|
animation-name: blink;
|
|
animation-duration: .5s;
|
|
animation-timing-function: steps(12);
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
|
|
#network.disconnected {
|
|
padding-right: 15px;
|
|
}
|
|
|
|
#bluetooth {
|
|
font-size: 14px;
|
|
}
|
|
|
|
#bluetooth.connected {
|
|
padding-right: 12px;
|
|
}
|
|
|
|
#custom-media {
|
|
border: 2px solid @color1;
|
|
font-weight: 500;
|
|
transition: 200ms ease-in;
|
|
}
|
|
|
|
#custom-media:hover {
|
|
border: 2px solid transparent;
|
|
background: @color2;
|
|
}
|
|
|
|
#temperature.critical {
|
|
background-color: @color1;
|
|
}
|
|
|
|
#tray > .passive {
|
|
-gtk-icon-effect: dim;
|
|
}
|
|
|
|
#tray > .needs-attention {
|
|
-gtk-icon-effect: highlight;
|
|
}
|
|
|
|
@keyframes blink {
|
|
to {
|
|
background-color: alpha(@crust, .3);
|
|
color: @orange;
|
|
}
|
|
}
|
|
|
|
@keyframes pick-attention {
|
|
25% {
|
|
background: @color3;
|
|
}
|
|
|
|
50% {
|
|
background: @color2;
|
|
}
|
|
|
|
75% {
|
|
background: @color3;
|
|
}
|
|
|
|
100% {
|
|
background: @color2;
|
|
}
|
|
}
|