dotfiles/waybar/style.css

166 lines
2.7 KiB
CSS
Raw Normal View History

2023-12-01 21:11:36 +01:00
* {
/* `otf-font-awesome` is required to be installed for icons */
2024-01-20 00:03:32 +01:00
font-family: "Roboto Sans";
font-size: 18px;
font-weight:400;
2023-12-01 21:11:36 +01:00
}
window#waybar {
2024-01-20 00:03:32 +01:00
background-color: rgba(0, 0, 0, 0.2);
2023-12-01 21:11:36 +01:00
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
/* window#waybar.hidden { */
/* opacity: 0.2; */
/* } */
button {
border: none;
border-radius: 0;
}
button:hover {
background: inherit;
box-shadow: inset 0 0 #ffffff;
}
#workspaces button {
2024-01-20 00:03:32 +01:00
padding: 0 5px;
2023-12-01 21:11:36 +01:00
background-color: transparent;
color: #ffffff;
2024-01-20 00:03:32 +01:00
border-radius: 2px;
2023-12-01 21:11:36 +01:00
}
#workspaces button:hover {
2024-01-20 22:02:16 +01:00
background-color: #023269;
2023-12-01 21:11:36 +01:00
}
#workspaces button.focused {
2024-01-20 22:02:16 +01:00
background-color: #023269;
2023-12-01 21:11:36 +01:00
}
#workspaces button.active {
2024-01-20 22:02:16 +01:00
background-color: #023269;
2023-12-01 21:11:36 +01:00
}
#workspaces button.urgent {
background-color: #ed8274;
}
2023-12-02 00:03:50 +01:00
2023-12-01 21:11:36 +01:00
#window,
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
2023-12-02 00:03:50 +01:00
#custom-updates,
#custom-powermode,
2023-12-01 21:11:36 +01:00
#tray {
2024-01-20 00:03:32 +01:00
padding: 0 14px;
border-radius: 7px;
2023-12-01 21:11:36 +01:00
color: #ffffff;
2024-01-20 00:03:32 +01:00
background-color: #1f2430;
margin-left:4px;
margin-right:4px;
margin-top:2px;
margin-bottom:2px;
}
#clock.clock2,
#cpu.cpu2,
#memory,
#temperature {
2024-01-20 22:02:16 +01:00
background-color: #023269;
2023-12-01 21:11:36 +01:00
}
2023-12-13 00:16:13 +01:00
#taskbar button {
padding: 0 12px;
2024-01-20 00:03:32 +01:00
border-radius: 7px;
2023-12-13 00:16:13 +01:00
color: #ffffff;
background-color: #1f2430;
2024-01-20 00:03:32 +01:00
margin-left:4px;
margin-right:4px;
margin-top:2px;
margin-bottom:2px;
2023-12-13 00:16:13 +01:00
}
#taskbar button.active {
2024-01-20 22:02:16 +01:00
background-color: #023269;
2023-12-13 00:16:13 +01:00
}
2023-12-01 21:11:36 +01:00
#window {
font-weight:400;
margin-left:0;
}
2023-12-02 00:03:50 +01:00
window#waybar.empty #window {
background-color: transparent;
}
2023-12-01 21:11:36 +01:00
#clock {
margin-right:0;
}
#workspaces {
2024-01-20 00:03:32 +01:00
margin: 4px 9px;
2023-12-01 21:11:36 +01: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;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#custom-media {
background-color: #66cc99;
color: #2a5c45;
min-width: 100px;
}
#custom-media.custom-spotify {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}