stylix: add accent color

I spent an hour just to add one f*ing option
This commit is contained in:
2026-06-08 03:24:54 +03:00
parent c8b5900985
commit 98434b79cf
9 changed files with 56 additions and 14 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
{ pkgs, lib, config, osConfig, inputs, ... }: {
wayland.windowManager.hyprland = let
colors = config.lib.stylix.colors;
accent = colors.${config.stylix.accent};
wallpaper_changer = pkgs.writers.writePython3Bin "wallpaper_changer" {
libraries = [ pkgs.python3Packages.requests ];
@@ -57,7 +58,7 @@
gaps_in = 2;
gaps_out = 10;
border_size = 3;
"col.active_border" = lib.mkForce "rgba(${colors.base0C}aa) rgba(${colors.base0B}aa) 45deg";
"col.active_border" = lib.mkForce "rgba(${colors.base0C}aa) rgba(${accent}aa) 45deg";
layout = "dwindle";
};
+1
View File
@@ -105,6 +105,7 @@ in {
};
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
accent = "base0B";
polarity = "dark";
image = pkgs.fetchurl {
+6 -5
View File
@@ -155,6 +155,7 @@
style = let
colors = config.lib.stylix.colors.withHashtag;
accent = colors.${config.stylix.accent};
radius = "6px";
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
window#waybar {
@@ -199,13 +200,13 @@
&:hover { background: ${colors.base01}; }
&.active {
background: ${colors.base0B};
background: ${accent};
color: ${colors.base00};
&:hover {
border-color: ${colors.base0B};
border-color: ${accent};
background: ${colors.base01};
color: ${colors.base0B};
color: ${accent};
}
}
}
@@ -259,7 +260,7 @@
#battery {
&.plugged { color: ${colors.base0D}; }
&.charging { color: ${colors.base0B}; }
&.charging { color: ${accent}; }
&:not(.charging) {
&.warning {
color: ${colors.base00};
@@ -277,7 +278,7 @@
}
&.full {
color: ${colors.base00};
background: ${colors.base0B};
background: ${accent};
}
}