304 lines
5 KiB
CSS
304 lines
5 KiB
CSS
@define-color foreground #c0caf5;
|
|
@define-color background #1a1b26;
|
|
|
|
@define-color black #15161e;
|
|
@define-color red #f7768e;
|
|
@define-color green #9ece6a;
|
|
@define-color yellow #e0af68;
|
|
@define-color blue #7aa2f7;
|
|
@define-color purple #bb9af7;
|
|
@define-color lightblue #7dcfff;
|
|
|
|
* {
|
|
/* `otf-font-awesome` is required to be installed for icons */
|
|
font-family: JetBrainsMono Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
|
font-size: 13px;
|
|
border-radius: 10px;
|
|
transition-duration: 0.5s;
|
|
}
|
|
|
|
.module {
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
window#waybar {
|
|
color: @foreground;
|
|
background-color: transparent;
|
|
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;
|
|
}
|
|
*/
|
|
|
|
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 {
|
|
background-color: @background;
|
|
color: @foreground;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#workspaces button {
|
|
color: @foreground;
|
|
padding: 0 5px;
|
|
}
|
|
|
|
#workspaces button:hover {
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
#workspaces button.focused {
|
|
background-color: #64727D;
|
|
box-shadow: inset 0 -3px #ffffff;
|
|
}
|
|
|
|
#workspaces button.urgent {
|
|
background-color: #eb4d4b;
|
|
}
|
|
|
|
#clock,
|
|
#battery,
|
|
#cpu,
|
|
#memory,
|
|
#disk,
|
|
#temperature,
|
|
#backlight,
|
|
#network,
|
|
#pulseaudio,
|
|
#wireplumber,
|
|
#custom-media,
|
|
#tray,
|
|
#mode,
|
|
#idle_inhibitor,
|
|
#scratchpad,
|
|
#power-profiles-daemon,
|
|
#mpd {
|
|
padding: 0 10px;
|
|
background-color: @background;
|
|
color: @blue;
|
|
}
|
|
|
|
#window,
|
|
#workspaces {
|
|
}
|
|
|
|
#clock {
|
|
border-top-right-radius: 0px;
|
|
border-bottom-right-radius: 0px;
|
|
margin-right: 0px;
|
|
|
|
background-color: @background;
|
|
color: @red;
|
|
}
|
|
|
|
#custom-swaync {
|
|
border-top-left-radius: 0px;
|
|
border-bottom-left-radius: 0px;
|
|
margin-left: 0px;
|
|
|
|
background-color: @red;
|
|
color: @background;
|
|
padding: 10px;
|
|
}
|
|
|
|
#battery {
|
|
background-color: @background;
|
|
color: @green;
|
|
}
|
|
|
|
#battery.charging, #battery.plugged {
|
|
color: #ffffff;
|
|
background-color: #26A65B;
|
|
}
|
|
|
|
@keyframes blink {
|
|
to {
|
|
background-color: #ffffff;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
|
#battery.critical:not(.charging) {
|
|
background-color: #f53c3c;
|
|
color: #ffffff;
|
|
animation-name: blink;
|
|
animation-duration: 0.5s;
|
|
animation-timing-function: steps(12);
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
|
|
#cpu {
|
|
background-color: @blue;
|
|
color: #000000;
|
|
}
|
|
|
|
#memory {
|
|
background-color: @background;
|
|
color: @green;
|
|
}
|
|
|
|
#disk {
|
|
background-color: @background;
|
|
color: @yellow;
|
|
}
|
|
|
|
#backlight {
|
|
background-color: @background;
|
|
color: @lightblue;
|
|
}
|
|
|
|
#network {
|
|
background-color: @background;
|
|
color: @purple;
|
|
}
|
|
|
|
#network.disconnected {
|
|
background-color: @background;
|
|
color: @red;
|
|
}
|
|
|
|
#wireplumber {
|
|
background-color: @background;
|
|
color: @yellow;
|
|
/* color: @foreground;*/
|
|
}
|
|
|
|
#wireplumber.muted {
|
|
background-color: @background;
|
|
color: @red;
|
|
}
|
|
|
|
#custom-media {
|
|
background-color: @background;
|
|
color: @yellow;
|
|
min-width: 100px;
|
|
}
|
|
|
|
#tray {
|
|
background-color: @background;
|
|
color: @foreground;
|
|
}
|
|
|
|
#tray > .passive {
|
|
-gtk-icon-effect: dim;
|
|
}
|
|
|
|
#tray > .needs-attention {
|
|
-gtk-icon-effect: highlight;
|
|
background-color: #eb4d4b;
|
|
}
|
|
|
|
#privacy {
|
|
padding: 0;
|
|
}
|
|
|
|
#privacy-item {
|
|
padding: 0 5px;
|
|
color: @foreground;
|
|
}
|
|
|
|
|
|
/*
|
|
* hover variants
|
|
*/
|
|
|
|
#clock:hover {
|
|
background-color: @red;
|
|
color: @background;
|
|
}
|
|
|
|
#custom-swaync:hover {
|
|
background-color: @background;
|
|
color: @red;
|
|
}
|
|
|
|
#battery:hover {
|
|
background-color: @green;
|
|
color: @background;
|
|
}
|
|
|
|
#cpu:hover {
|
|
background-color: @blue;
|
|
color: @background;
|
|
}
|
|
|
|
#memory:hover {
|
|
background-color: @green;
|
|
color: @background;
|
|
}
|
|
|
|
#disk:hover {
|
|
background-color: @background;
|
|
color: @yellow;
|
|
}
|
|
|
|
#backlight:hover {
|
|
background-color: @lightblue;
|
|
color: @background;
|
|
}
|
|
|
|
#network:hover {
|
|
background-color: @purple;
|
|
color: @background;
|
|
}
|
|
|
|
#network.disconnected:hover {
|
|
background-color: @red;
|
|
color: @background;
|
|
}
|
|
|
|
#wireplumber:hover {
|
|
background-color: @yellow;
|
|
color: @background;
|
|
}
|
|
|
|
#wireplumber.muted:hover {
|
|
background-color: @red;
|
|
color: @background;
|
|
}
|
|
|
|
#custom-media:hover {
|
|
background-color: @yellow;
|
|
color: @background;
|
|
}
|
|
|
|
#tray:hover {
|
|
background-color: @foreground;
|
|
color: @background;
|
|
}
|
|
|
|
#privacy:hover {
|
|
padding: 0;
|
|
}
|
|
|
|
#privacy-item:hover {
|
|
background-color: @foreground;
|
|
color: @background;
|
|
}
|