Skip to content

Commit

Permalink
chore: cleanup code length theme module
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 15, 2023
1 parent 9abea60 commit 93da284
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions modules/home/desktop/theme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,26 @@ in
};
};

programs.git.delta.options = {
syntax-theme = mkIf config.khanelinix.tools.bat.enable "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";
programs.git.delta = {
options = {
syntax-theme = mkIf config.khanelinix.tools.bat.enable "${cfg.selectedTheme.name}-${cfg.selectedTheme.variant}";
};
};

#bottom
programs.bottom.settings = builtins.fromTOML (builtins.readFile (cfg.package + "/bottom/${cfg.selectedTheme.variant}.toml"));
programs.bottom = {
settings = builtins.fromTOML (builtins.readFile (cfg.package + "/bottom/${cfg.selectedTheme.variant}.toml"));
};

# btop
programs.btop = {
settings.color_theme = "${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}";
};
xdg.configFile."btop/themes/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme".source = mkIf config.programs.btop.enable (cfg.package + "/btop/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme");
xdg.configFile = {
"btop/themes/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme" = {
source = mkIf config.programs.btop.enable (cfg.package + "/btop/${cfg.selectedTheme.name}_${cfg.selectedTheme.variant}.theme");
};
};

# k9s
programs.k9s.skin = fromYAML (cfg.package + "/k9s/${cfg.selectedTheme.variant}.yml");
Expand Down

0 comments on commit 93da284

Please sign in to comment.