add conversion functions to catppuccin module

This commit is contained in:
KoenDR06 2025-12-24 17:57:24 +01:00
parent 7f5c5b718f
commit 82a11ef821
10 changed files with 663 additions and 391 deletions

View file

@ -3,7 +3,7 @@
config,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib) mkIf mkEnableOption catppuccin;
cfg = config.horseman.dots.waybar;
username = config.horseman.username;
colors = config.horseman.catppuccin.colors;
@ -26,33 +26,33 @@ in {
}
.modules-left, .modules-center, .modules-right {
border: 2px solid ${colors.${accent}};
border: 2px solid ${catppuccin.toHex colors.${accent}};
border-radius: 10px;
margin: 5px;
background: ${colors.base};
color: ${colors.text};
background: ${catppuccin.toHex colors.base};
color: ${catppuccin.toHex colors.text};
}
#power {
padding-left: 10px;
}
#idle_inhibitor.activated {
color: ${colors.red};
color: ${catppuccin.toHex colors.red};
}
#power * {
color: ${colors.${accent}};
color: ${catppuccin.toHex colors.${accent}};
transition: 0.2s color ease;
font-size: 26px;
}
#power *:hover {
color: ${colors.red};
color: ${catppuccin.toHex colors.red};
}
#workspaces .empty {
color: ${colors.surface0};
color: ${catppuccin.toHex colors.surface0};
}
#workspaces .active {
color: ${colors.red};
color: ${catppuccin.toHex colors.red};
font-size: 18px;
}
#workspaces * {
@ -62,27 +62,27 @@ in {
}
#workspaces > * {
color: ${colors.${accent}};
color: ${catppuccin.toHex colors.${accent}};
}
#clock {
color: ${colors.peach};
color: ${catppuccin.toHex colors.peach};
}
#battery {
color: ${colors.maroon};
color: ${catppuccin.toHex colors.maroon};
}
#cpu {
color: ${colors.red};
color: ${catppuccin.toHex colors.red};
}
#memory {
color: ${colors.mauve};
color: ${catppuccin.toHex colors.mauve};
}
#pulseaudio {
color: ${colors.blue};
color: ${catppuccin.toHex colors.blue};
}
#network {
color: ${colors.teal};
color: ${catppuccin.toHex colors.teal};
}
.horizontal .modules-right {
font-size: 16px;