sisyphus/config/waybar/style.css

126 lines
2.3 KiB
CSS
Raw Normal View History

2022-04-22 15:28:40 +02:00
/*
* ~/.config/waybar/style.css
2022-06-04 21:44:29 +02:00
*
* `otf-font-awesome` is required to be installed for icons.
*
* Pick your stylesheet:
* - sharp.css
* - transparent.css
* - round.css
*/
@define-color transparent-black rgba(23, 23, 23, 0.9);
@define-color white #ecf0f1;
@define-color warning-red #eb4d4b;
@define-color accent #00897b;
2022-04-22 15:28:40 +02:00
window#waybar {
2022-06-04 21:44:29 +02:00
font-family: Letter; /* This is my personal font. */
font-size: 13px;
2022-04-22 15:28:40 +02:00
transition-property: background-color;
transition-duration: .5s;
}
2022-06-04 21:44:29 +02:00
#window, #workspaces {
margin: 0 4px;
2022-04-22 15:28:40 +02:00
}
#workspaces button {
border: none;
2022-06-01 19:18:54 +02:00
border-radius: 0;
2022-04-22 15:28:40 +02:00
min-width: 30px;
2022-06-04 21:44:29 +02:00
padding: 0 5px;
2022-04-22 15:28:40 +02:00
}
2022-06-04 21:44:29 +02:00
#workspaces button:hover,
#workspaces button.focused {
2022-06-01 19:18:54 +02:00
background-color: transparent;
2022-06-04 21:44:29 +02:00
color: @white;
2022-04-22 15:28:40 +02:00
}
#workspaces button.urgent {
2022-06-04 21:44:29 +02:00
color: @white;
background-color: @warning-red;
2022-06-01 19:18:54 +02:00
}
2022-06-04 21:44:29 +02:00
/* All modules individually. */
#backlight, #battery, #bluetooth, #clock, #cpu,
#custom-media, #disk, #idle_inhibitor, #memory,
#mode, #mpd, #network, #pulseaudio, #temperature,
2022-06-01 19:18:54 +02:00
#tray {
2022-06-04 21:44:29 +02:00
padding: 0 10px;
2022-04-22 15:28:40 +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;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
2022-06-04 21:44:29 +02:00
label:focus {
background-color: #000000;
}
/* Module specific colours */
#battery.charging, #battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
2022-04-22 15:28:40 +02:00
#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;
}
#custom-media {
color: #2a5c45;
2022-06-04 21:44:29 +02:00
background-color: #66cc99;
2022-04-22 15:28:40 +02:00
min-width: 100px;
}
#custom-media.custom-spotify {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature.critical {
background-color: #eb4d4b;
}
2022-06-04 21:44:29 +02:00
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
2022-04-22 15:28:40 +02:00
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
2022-06-04 21:44:29 +02:00
@import "transparent.css";
2022-04-22 15:28:40 +02:00