convertablet/configs/waybar/style.css
Yuki Joou 2049494676 configs: Added sample waybar config
This also adds a few lines to the example hooks to toggle between the
configs depending on the state of the computer
2023-07-21 02:54:09 +02:00

140 lines
2.4 KiB
CSS

* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: 'Atkinson Hyperlegible';
font-size: 13px;
}
window#waybar {
background-color: rgba(59, 4, 59, 0.5);
border-bottom: 3px solid rgba(59, 4, 125, 0.2);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: white;
}
#workspaces button:hover {
background: rgba(128, 128, 128, 0.4);
}
#workspaces button.focused {
background-color: rgba(128, 64, 128, 0.4);
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: rgba(128, 64, 128, 0.4);
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd,
#custom-close,
#custom-launcher,
#custom-bright-plus,
#custom-bright-minus,
#custom-volume-plus,
#custom-volume-minus{
padding: 0 10px;
color: rgb(255, 255, 255);
background-color: rgba(255, 255, 255, 0.4);
}
#custom-close {
margin: 0 20px;
}
#window,
#workspaces {
margin: 0 4px;
}
/* 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;
}