waybar: use matugen

This commit is contained in:
Nico 2025-05-03 16:16:02 +10:00
parent 175a0cb899
commit 627d6221fd
3 changed files with 42 additions and 43 deletions

View file

@ -0,0 +1,7 @@
/*
* Css Colors
* Generated with Matugen
*/
<* for name, value in colors *>
@define-color {{name}} {{value.default.hex}};
<* endfor *>

1
stow/.config/waybar/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
colors.css

View file

@ -1,13 +1,4 @@
@define-color foreground #c0caf5; @import "colors.css";
@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 */ /* `otf-font-awesome` is required to be installed for icons */
@ -24,7 +15,7 @@
} }
window#waybar { window#waybar {
color: @foreground; color: @primary;
background-color: transparent; background-color: transparent;
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
@ -59,12 +50,12 @@ button:hover {
#workspaces { #workspaces {
background-color: @background; background-color: @background;
color: @foreground; color: @primary;
border-radius: 10px; border-radius: 10px;
} }
#workspaces button { #workspaces button {
color: @foreground; color: @primary;
padding: 0 5px; padding: 0 5px;
} }
@ -100,7 +91,7 @@ button:hover {
#mpd { #mpd {
padding: 0 10px; padding: 0 10px;
background-color: @background; background-color: @background;
color: @blue; color: @primary;
} }
#window, #window,
@ -113,7 +104,7 @@ button:hover {
margin-right: 0px; margin-right: 0px;
background-color: @background; background-color: @background;
color: @red; color: @primary;
} }
#custom-swaync { #custom-swaync {
@ -121,14 +112,14 @@ button:hover {
border-bottom-left-radius: 0px; border-bottom-left-radius: 0px;
margin-left: 0px; margin-left: 0px;
background-color: @red; background-color: @primary;
color: @background; color: @background;
padding: 10px; padding: 10px;
} }
#battery { #battery {
background-color: @background; background-color: @background;
color: @green; color: @secondary;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
@ -155,55 +146,55 @@ button:hover {
} }
#cpu { #cpu {
background-color: @blue; background-color: @primary;
color: #000000; color: #000000;
} }
#memory { #memory {
background-color: @background; background-color: @background;
color: @green; color: @secondary;
} }
#disk { #disk {
background-color: @background; background-color: @background;
color: @yellow; color: @tertiary;
} }
#backlight { #backlight {
background-color: @background; background-color: @background;
color: @yellow; color: @tertiary;
} }
#network { #network {
background-color: @background; background-color: @background;
color: @purple; color: @secondary;
} }
#network.disconnected { #network.disconnected {
background-color: @background; background-color: @background;
color: @red; color: @error;
} }
#wireplumber { #wireplumber {
background-color: @background; background-color: @background;
color: @yellow; color: @tertiary;
/* color: @foreground;*/ /* color: @primary;*/
} }
#wireplumber.muted { #wireplumber.muted {
background-color: @background; background-color: @background;
color: @red; color: @error;
} }
#custom-media { #custom-media {
background-color: @background; background-color: @background;
color: @yellow; color: @tertiary;
min-width: 100px; min-width: 100px;
} }
#tray { #tray {
background-color: @background; background-color: @background;
color: @foreground; color: @primary;
} }
#tray > .passive { #tray > .passive {
@ -221,7 +212,7 @@ button:hover {
#privacy-item { #privacy-item {
padding: 0 5px; padding: 0 5px;
color: @foreground; color: @primary;
} }
@ -230,67 +221,67 @@ button:hover {
*/ */
#clock:hover { #clock:hover {
background-color: @red; background-color: @primary;
color: @background; color: @background;
} }
#custom-swaync:hover { #custom-swaync:hover {
background-color: @background; background-color: @background;
color: @red; color: @primary;
} }
#battery:hover { #battery:hover {
background-color: @green; background-color: @secondary;
color: @background; color: @background;
} }
#cpu:hover { #cpu:hover {
background-color: @blue; background-color: @primary;
color: @background; color: @background;
} }
#memory:hover { #memory:hover {
background-color: @green; background-color: @secondary;
color: @background; color: @background;
} }
#disk:hover { #disk:hover {
background-color: @background; background-color: @background;
color: @yellow; color: @tertiary;
} }
#backlight:hover { #backlight:hover {
background-color: @yellow; background-color: @tertiary;
color: @background; color: @background;
} }
#network:hover { #network:hover {
background-color: @purple; background-color: @secondary;
color: @background; color: @background;
} }
#network.disconnected:hover { #network.disconnected:hover {
background-color: @red; background-color: @error;
color: @background; color: @background;
} }
#wireplumber:hover { #wireplumber:hover {
background-color: @yellow; background-color: @tertiary;
color: @background; color: @background;
} }
#wireplumber.muted:hover { #wireplumber.muted:hover {
background-color: @red; background-color: @error;
color: @background; color: @background;
} }
#custom-media:hover { #custom-media:hover {
background-color: @yellow; background-color: @tertiary;
color: @background; color: @background;
} }
#tray:hover { #tray:hover {
background-color: @foreground; background-color: @primary;
color: @background; color: @background;
} }
@ -299,6 +290,6 @@ button:hover {
} }
#privacy-item:hover { #privacy-item:hover {
background-color: @foreground; background-color: @primary;
color: @background; color: @background;
} }