flake update + stylix theming customization
This commit is contained in:
11
stylix.nix
11
stylix.nix
@@ -9,21 +9,22 @@ let
|
||||
mkScheme = color: name: polarity: image: {
|
||||
inherit name polarity image;
|
||||
iconPackage = pkgs.papirus-icon-theme.override { inherit color; };
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/${name}.yaml";
|
||||
};
|
||||
schemas = {
|
||||
who = mkScheme "bluegrey" "kanagawa" "dark" ./wallpapers/Nikolay_Kasatkin_Who.jpeg;
|
||||
schemes = {
|
||||
who = mkScheme "orange" "catppuccin-frappe" "dark" ./wallpapers/Nikolay_Kasatkin_Who.jpeg;
|
||||
jesus = mkScheme "red" "equilibrium-light" "light" ./wallpapers/jesus.png;
|
||||
ballerinas = mkScheme "brown" "mocha" "dark" ./wallpapers/Waay-Ballerinas.jpeg;
|
||||
};
|
||||
scheme = schemas.who;
|
||||
scheme = schemes.ballerinas;
|
||||
in
|
||||
{
|
||||
options.my.stylix.enable = lib.mkEnableOption "enable";
|
||||
config = {
|
||||
stylix = {
|
||||
inherit (scheme) image polarity;
|
||||
inherit (scheme) image polarity base16Scheme;
|
||||
enable = cfg.enable;
|
||||
targets.qt.platform = lib.mkForce "qtct";
|
||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/${scheme.name}.yaml";
|
||||
};
|
||||
home-manager.users.jawz = {
|
||||
gtk = lib.mkIf (!cfg.enable) {
|
||||
|
||||
Reference in New Issue
Block a user