nixos-config/home-manager/modules/waybar/style.css

248 lines
3.8 KiB
CSS
Raw Normal View History

2024-04-22 17:42:31 +02:00
@define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd;
@define-color pink #f5c2e7;
@define-color mauve #cba6f7;
@define-color red #f38ba8;
@define-color maroon #eba0ac;
@define-color peach #fab387;
@define-color yellow #f9e2af;
@define-color green #a6e3a1;
@define-color teal #94e2d5;
@define-color sky #89dceb;
@define-color sapphire #74c7ec;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color text #cdd6f4;
@define-color subtext1 #bac2de;
@define-color subtext0 #a6adc8;
@define-color overlay2 #9399b2;
@define-color overlay1 #7f849c;
@define-color overlay0 #6c7086;
@define-color surface2 #585b70;
@define-color surface1 #45475a;
@define-color surface0 #313244;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
@keyframes blink-warning {
70% {
color: @text;
}
to {
color: @text;
background-color: orange;
}
}
@keyframes blink-critical {
70% {
color: @text;
}
to {
color: @text;
background-color: red;
}
}
* {
border: none;
border-radius: 0;
color: @text;
min-height: 0;
margin: 0;
padding: 0;
}
#waybar {
background: @base;
color: @text;
font-family: "Iosevka Nerd Font", sans-serif;
font-size: 14px;
}
#battery,
#clock,
#cpu,
#custom-keyboard-layout,
#memory,
#mode,
#network,
#pulseaudio,
#temperature,
#tray,
#custom-now_playing,
#idle_inhibitor {
padding-left: 10px;
padding-right: 10px;
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.warning {
color: @peach;
}
#battery.critical {
color: @red;
}
#battery.warning.discharging {
animation-name: blink-warning;
animation-duration: 3s;
}
#battery.critical.discharging {
animation-name: blink-critical;
animation-duration: 2s;
}
#clock {
font-weight: bold;
}
#cpu {
/* No styles */
}
#cpu.warning {
color: @peach;
}
#cpu.critical {
color: @red;
}
#memory {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#memory.warning {
color: @peach;
}
#memory.critical {
color: @red;
animation-name: blink-critical;
animation-duration: 2s;
}
#mode {
background: @surface0;
border-top: 2px solid @text;
/* To compensate for the top border and still have vertical centering */
padding-bottom: 2px;
}
#mode.normal {
font-size: 0;
min-width: 0;
min-height: 0;
margin: -17px;
padding: 0;
border: 0;
opacity: 0;
box-shadow: none;
background-color: transparent;
}
#network {
/* No styles */
}
#network.disconnected {
color: @peach;
}
#pulseaudio {
/* No styles */
}
#pulseaudio.muted {
/* No styles */
}
#custom-spotify {
color: rgb(102, 220, 105);
}
#temperature {
/* No styles */
}
#temperature.critical {
color: @red;
}
#tray {
/* No styles */
}
#window {
font-weight: bold;
}
#tags button,
#workspaces button {
border-top: 2px solid transparent;
/* To compensate for the top border and still have vertical centering */
padding-bottom: 2px;
padding-left: 10px;
padding-right: 10px;
color: @overlay1;
}
#tags button.focused,
#tags button.active,
#workspaces button.focused,
#workspaces button.active {
border-color: @surface2;
color: @text;
background-color: @surface0;
}
#tags button.urgent,
#workspaces button.urgent {
border-color: @red;
color: @text;
}
#tags button:not(.occupied):not(.focused) {
font-size: 0;
min-width: 0;
min-height: 0;
margin: -17px;
padding: 0;
border: 0;
opacity: 0;
box-shadow: none;
background-color: transparent;
}
#idle_inhibitor {
background-color: transparent;
font-weight: bold;
padding-right: 10px;
}
#idle_inhibitor.activated {
background-color: @red;
color: @text;
}
#custom-now_playing {
font-weight: bold;
}
#custom-notifications {
padding: 0 10px;
}