neodotfiles/.config/waybar/style.css

223 lines
4.2 KiB
CSS
Raw Normal View History

2024-03-27 06:07:02 +00:00
/* Styles */
/* Colors (catppuccin-mocha) */
@define-color white #cdd6f4;
@define-color black #1e1e2e;
@define-color red #e78284;
@define-color green #a6d189;
@define-color yellow #e5c890;
@define-color orange #ef9f76;
@define-color blue #8caaee;
@define-color purple #ca9ee6;
@define-color aqua #81c8be;
@define-color gray #313244;
/* Brigher variants */
@define-color brred #f38ba8;
@define-color brgreen #a6e3a1;
@define-color brpurple #cba6f7;
@define-color brorange #fab387;
@define-color brgray #45475a;
@define-color brblue #89b4fa;
@define-color braqua #94e2d5;
@define-color bryellow #f9e2af;
2024-03-27 06:07:02 +00:00
/* Color definitions for modules */
@define-color critical @brred;
@define-color unfocused @braqua;
@define-color focused @brblue;
@define-color inactive @gray;
@define-color idle @green;
@define-color backlight @yellow;
@define-color pulseaudio @blue;
@define-color powerprofile @green;
@define-color network @red;
@define-color language @purple;
@define-color battery @green;
@define-color clock @aqua;
@define-color wbackground rgba(30, 30, 46, 0.90);
2024-03-27 06:07:02 +00:00
/* Keyframes */
@keyframes blink {
to {
color: @critical;
}
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
/* Reset all styles */
* {
border: none;
border-radius: 0;
min-height: 0;
padding: 0;
box-shadow: none;
text-shadow: none;
2023-02-22 00:02:06 +00:00
}
button {
box-shadow: inset 0 -3px transparent;
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
}
2024-03-27 06:07:02 +00:00
/* The whole bar */
window#waybar {
background-color: @wbackground;
font-family: Symbols Nerd Font Mono, Mononoki Nerd Font;
2024-07-26 17:43:09 +00:00
font-size: 14px;
2023-03-31 13:34:13 +00:00
}
2024-03-27 06:07:02 +00:00
/* Workspaces */
2023-02-22 00:02:06 +00:00
#workspaces button {
2024-03-27 06:07:02 +00:00
border-top: 2px solid @inactive;
padding: 0 8px;
color: @white;
2023-02-22 00:02:06 +00:00
}
#workspaces button.active {
2024-03-27 06:07:02 +00:00
background-color: @inactive;
border-top: 2px solid @focused;
color: @focused;
transition-property: color;
transition-duration: .5s;
2023-02-22 00:02:06 +00:00
}
#workspaces button:hover {
2024-03-27 06:07:02 +00:00
color: @unfocused;
transition-property: color;
transition-duration: .5s;
2023-02-22 00:02:06 +00:00
}
#workspaces button.urgent {
2024-03-27 06:07:02 +00:00
background-color: @inactive;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: 3;
animation-direction: alternate;
2023-02-22 00:02:06 +00:00
}
#window {
color: @white;
border-radius: 30px;
background-color: @brgray;
padding-left: 10px;
padding-right: 10px;
margin-top: 5px;
margin-bottom: 5px;
}
window#waybar.empty #window {
background-color: @wbackground;
}
2024-03-27 06:07:02 +00:00
/* All modules */
2023-02-22 00:02:06 +00:00
#clock,
2024-06-05 21:02:32 +00:00
#power-profiles-daemon,
2023-02-22 00:02:06 +00:00
#battery,
#backlight,
#network,
#pulseaudio,
2024-03-27 06:07:02 +00:00
#idle_inhibitor,
#language {
color: @brgray;
2024-03-27 06:07:02 +00:00
padding-right: 1px;
padding-left: 4px;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
/* Individual modules */
#battery, #battery.charging, #battery.plugged {
background-color: @battery;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#battery.critical:not(.charging) {
color: @white;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
label:focus {
background-color: @white;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#backlight {
background-color: @backlight;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#network, #network.disconnected {
background-color: @network;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#pulseaudio, #pulseaudio.muted {
background-color: @pulseaudio;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#language {
background-color: @language;
2023-02-22 00:02:06 +00:00
}
2024-06-05 21:02:32 +00:00
#power-profiles-daemon {
2024-03-27 06:07:02 +00:00
background-color: @powerprofile;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#clock {
background-color: @clock;
padding-right: 10px;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#idle_inhibitor {
background-color: @battery;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
/* All Modeline arrows */
#custom-arrow1,
#custom-arrow2,
#custom-arrow3,
#custom-arrow4,
#custom-arrow5,
#custom-arrow6 {
2024-07-26 17:43:09 +00:00
font-size: 25pt;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
/* Individual Modeline arrows */
#custom-arrow1 {
background: transparent;
color: @language;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow2 {
background: @language;
color: @pulseaudio;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow3 {
background: @pulseaudio;
color: @backlight;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow4 {
background: @backlight;
color: @battery;
2023-02-22 00:02:06 +00:00
}
2023-02-25 16:12:09 +00:00
2024-03-27 06:07:02 +00:00
#custom-arrow5 {
background: @battery;
color: @network;
2023-02-25 16:12:09 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow6 {
background: @network;
color: @clock;
}