244 lines
4.1 KiB
CSS
244 lines
4.1 KiB
CSS
|
|
@import "mocha.css";
|
|
|
|
@define-color hover shade(@blue, .5);
|
|
|
|
* {
|
|
color: @text;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
window {
|
|
font-family: "0xProto Nerd Font Regular", "Font Awesome", sans-serif;
|
|
font-size: 12px;
|
|
color: @text;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
/* Manage "floating" waybar position with paddings */
|
|
window > * {
|
|
margin-top: 5px;
|
|
margin-left: 4px;
|
|
margin-right: 4px;
|
|
padding: 2px;
|
|
}
|
|
|
|
window > * {
|
|
background: alpha(@base, .8);
|
|
}
|
|
|
|
window#waybar {
|
|
background-color: transparent;
|
|
}
|
|
|
|
window#waybar.hidden {
|
|
opacity: .1;
|
|
}
|
|
|
|
/*window#waybar.empty {
|
|
background-color: transparent;
|
|
}
|
|
window#waybar.solo {
|
|
background-color: #FFFFFF;
|
|
}
|
|
window#waybar.termite {
|
|
background-color: alpha(@base, .1);
|
|
}
|
|
window#waybar.chromium {
|
|
background-color: @base;
|
|
}*/
|
|
|
|
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;
|
|
background: alpha(@base, .3);
|
|
transition: 120ms ease-in;
|
|
}
|
|
|
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
button:hover {
|
|
background-color: @hover;
|
|
}
|
|
|
|
widget > * {
|
|
padding-top: 1px;
|
|
padding-bottom: 1px;
|
|
transition: 100ms ease-in;
|
|
}
|
|
|
|
widget > *:hover:not(#window):not(#workspaces):not(#tray):not(#custom-media) {
|
|
background: @hover;
|
|
}
|
|
|
|
#custom-logo {
|
|
padding-left: 12px;
|
|
padding-right: 18px;
|
|
font-size: 15.2px;
|
|
transition: 110ms ease-in;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
#workspaces {
|
|
border-radius: 16px;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
#workspaces button {
|
|
color: @text;
|
|
background: transparent;
|
|
font-size: 19px;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
#workspaces button *:hover {
|
|
background: @base;
|
|
}
|
|
|
|
#workspaces button.active {
|
|
background: alpha(shade(@blue, .5), .6);
|
|
}
|
|
|
|
#workspaces button.urgent {
|
|
background-color: alpha(shade(@orange, 0.6), .3);
|
|
}
|
|
|
|
#custom-notifications {
|
|
background: alpha(@base, .3);
|
|
font-size: 16px;
|
|
padding-left: 10px;
|
|
padding-right: 12px;
|
|
}
|
|
|
|
#custom-notifications:hover {
|
|
background: alpha(@blue, .5);
|
|
}
|
|
|
|
#clock,
|
|
#battery,
|
|
#cpu,
|
|
#memory,
|
|
#disk,
|
|
#temperature,
|
|
#backlight,
|
|
#network,
|
|
#pulseaudio,
|
|
#wireplumber,
|
|
#custom-media,
|
|
#tray,
|
|
#mode,
|
|
#idle_inhibitor,
|
|
#scratchpad,
|
|
#power-profiles-daemon,
|
|
#mpd {
|
|
padding: 0 10px;
|
|
color: @text;
|
|
}
|
|
|
|
/*
|
|
#window,
|
|
#workspaces {}
|
|
*/
|
|
|
|
#clock {
|
|
background-color: alpha(@base, .3);
|
|
}
|
|
|
|
#battery {
|
|
background-color: alpha(@base, .3);
|
|
color: @text;
|
|
}
|
|
|
|
#battery.charging, #battery.plugged {
|
|
color: @text;
|
|
background-color: alpha(@base, .3);
|
|
}
|
|
|
|
#battery:not(.plugged):not(.charging) {
|
|
background-color: alpha(@blue, .35);
|
|
}
|
|
|
|
@keyframes blink {
|
|
to {
|
|
background-color: alpha(@crust, .3);
|
|
color: @orange;
|
|
}
|
|
}
|
|
|
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
|
#battery.critical:not(.charging) {
|
|
background-color: alpha(shade(@orange, 0.5), .3);
|
|
color: @text;
|
|
animation-name: blink;
|
|
animation-duration: 0.5s;
|
|
animation-timing-function: steps(12);
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
|
|
label:focus {
|
|
background-color: shade(@blue, 0.4);
|
|
}
|
|
|
|
#cpu {
|
|
background-color: @base;
|
|
color: @text;
|
|
}
|
|
|
|
#memory {
|
|
background-color: @base;
|
|
}
|
|
|
|
#disk {
|
|
background-color: @base;
|
|
}
|
|
|
|
#pulseaudio {
|
|
background-color: alpha(@base, .3);
|
|
color: @text;
|
|
}
|
|
|
|
#wireplumber {
|
|
background-color: alpha(@base, .3);
|
|
color: @text;
|
|
}
|
|
|
|
#custom-media.custom-spotify {
|
|
background-color: alpha(shade(@green, .65), .3);
|
|
}
|
|
|
|
#custom-media.custom-spotify:hover {
|
|
background: alpha(@green, .3);
|
|
}
|
|
|
|
#temperature {
|
|
background-color: alpha(@base, .3);
|
|
}
|
|
|
|
#temperature.critical {
|
|
background-color: alpha(@red, .3);
|
|
}
|
|
|
|
#tray {
|
|
background-color: alpha(@base, .3);
|
|
}
|
|
|
|
#tray > .passive {
|
|
-gtk-icon-effect: dim;
|
|
}
|
|
|
|
#tray > .needs-attention {
|
|
-gtk-icon-effect: highlight;
|
|
background: alpha(@orange, .3);
|
|
}
|
|
|
|
#scratchpad {
|
|
background: alpha(@base, .3);
|
|
}
|
|
|
|
#scratchpad.empty {
|
|
background-color: transparent;
|
|
}
|