neodotfiles/config/waybar/style.css

233 lines
4.3 KiB
CSS
Raw Permalink 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;
2024-09-28 03:08:07 +00:00
@define-color clock @purple;
@define-color monitor @blue;
@define-color language @aqua;
@define-color idle @green;
@define-color powerprofile @green;
@define-color battery @green;
2024-09-28 03:08:07 +00:00
@define-color volume @yellow;
@define-color backlight @orange;
@define-color network @red;
@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 */
* {
2024-09-28 03:08:07 +00:00
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;
2024-09-28 03:08:07 +00:00
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;
2024-09-28 03:08:07 +00:00
transition-duration: 0.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;
2024-09-28 03:08:07 +00:00
transition-duration: 0.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;
2024-09-28 03:08:07 +00:00
padding: 0 10px;
}
2024-09-28 03:08:07 +00:00
/* =====================================
Individual Module Styles
===================================== */
#cpu,
#memory,
#language,
#idle_inhibitor,
2024-06-05 21:02:32 +00:00
#power-profiles-daemon,
2023-02-22 00:02:06 +00:00
#battery,
2024-09-28 03:08:07 +00:00
#pulseaudio,
2023-02-22 00:02:06 +00:00
#backlight,
#network,
2024-09-28 03:08:07 +00:00
#bluetooth,
#clock {
color: @wbackground;
2024-03-27 06:07:02 +00:00
padding-left: 4px;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#clock {
background-color: @clock;
}
2024-03-27 06:07:02 +00:00
2024-09-28 03:08:07 +00:00
#cpu {
background-color: @monitor;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#memory {
background-color: @monitor;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#language {
background-color: @language;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#idle_inhibitor {
background-color: @battery;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#power-profiles-daemon {
background-color: @powerprofile;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#battery,
#battery.charging,
#battery.plugged {
background-color: @battery;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#battery.critical:not(.charging) {
color: @white;
animation: blink 0.5s linear infinite alternate;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#network,
#network.disconnected {
background-color: @network;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#bluetooth,
#bluetooth.disconnected {
background-color: @network;
2024-03-27 06:07:02 +00:00
padding-right: 10px;
2023-02-22 00:02:06 +00:00
}
2024-09-28 03:08:07 +00:00
#pulseaudio,
#pulseaudio.muted {
background-color: @volume;
}
#backlight {
background-color: @backlight;
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,
2024-09-28 03:08:07 +00:00
#custom-arrow6,
#custom-arrow7 {
font-size: 18pt;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
/* Individual Modeline arrows */
#custom-arrow1 {
2024-09-28 03:08:07 +00:00
background: transparent;
color: @clock;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow2 {
2024-09-28 03:08:07 +00:00
background: @clock;
color: @monitor;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow3 {
2024-09-28 03:08:07 +00:00
background: @monitor;
color: @language;
2023-02-22 00:02:06 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow4 {
2024-09-28 03:08:07 +00:00
background: @language;
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 {
2024-09-28 03:08:07 +00:00
background: @battery;
color: @volume;
2023-02-25 16:12:09 +00:00
}
2024-03-27 06:07:02 +00:00
#custom-arrow6 {
2024-09-28 03:08:07 +00:00
background: @volume;
color: @backlight;
2024-03-27 06:07:02 +00:00
}
2024-09-28 03:08:07 +00:00
#custom-arrow7 {
background: @backlight;
color: @network;
}