theme stuff
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
with lib;
|
||||
let
|
||||
cfg = config.mjallen.programs.btop;
|
||||
palette = import cfg.theme.file;
|
||||
in
|
||||
{
|
||||
imports = [ ./options.nix ];
|
||||
@@ -75,52 +74,6 @@ in
|
||||
selected_battery = "Auto";
|
||||
log_level = "WARNING";
|
||||
};
|
||||
themes = {
|
||||
global = ''
|
||||
theme[main_bg]="${palette.colors.bg}"
|
||||
theme[main_fg]="${palette.colors.text}"
|
||||
theme[title]="${palette.colors.text}"
|
||||
theme[hi_fg]="${palette.colors.info}"
|
||||
theme[selected_bg]="${palette.colors.bgAlt}"
|
||||
theme[selected_fg]="${palette.colors.info}"
|
||||
theme[inactive_fg]="${palette.colors.surfaceAlt}"
|
||||
theme[graph_text]="${palette.colors.text}"
|
||||
theme[meter_bg]="${palette.colors.bgAlt}"
|
||||
theme[proc_misc]="${palette.colors.text}"
|
||||
theme[cpu_box]="${palette.colors.accent}"
|
||||
theme[mem_box]="${palette.colors.success}"
|
||||
theme[net_box]="${palette.colors.warning}"
|
||||
theme[proc_box]="${palette.colors.danger}"
|
||||
theme[div_line]="${palette.colors.bgAlt}"
|
||||
theme[temp_start]="${palette.colors.success}"
|
||||
theme[temp_mid]="${palette.colors.warning}"
|
||||
theme[temp_end]="${palette.colors.danger}"
|
||||
theme[cpu_start]="${palette.colors.accent}"
|
||||
theme[cpu_mid]="${palette.colors.warning}"
|
||||
theme[cpu_end]="${palette.colors.danger}"
|
||||
theme[free_start]="${palette.colors.success}"
|
||||
theme[free_mid]="${palette.colors.warning}"
|
||||
theme[free_end]="${palette.colors.warning}"
|
||||
theme[cached_start]="${palette.colors.success}"
|
||||
theme[cached_mid]="${palette.colors.warning}"
|
||||
theme[cached_end]="${palette.colors.warning}"
|
||||
theme[available_start]="${palette.colors.text}"
|
||||
theme[available_mid]="${palette.colors.danger}"
|
||||
theme[available_end]="${palette.colors.danger}"
|
||||
theme[used_start]="${palette.colors.success}"
|
||||
theme[used_mid]="${palette.colors.warning}"
|
||||
theme[used_end]="${palette.colors.danger}"
|
||||
theme[download_start]="${palette.colors.info}"
|
||||
theme[download_mid]="${palette.colors.info}"
|
||||
theme[download_end]="${palette.colors.warning}"
|
||||
theme[upload_start]="${palette.colors.info}"
|
||||
theme[upload_mid]="${palette.colors.info}"
|
||||
theme[upload_end]="${palette.colors.warning}"
|
||||
theme[process_start]="${palette.colors.accent}"
|
||||
theme[process_mid]="${palette.colors.warning}"
|
||||
theme[process_end]="${palette.colors.danger}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,19 +3,5 @@ with lib;
|
||||
{
|
||||
options.mjallen.programs.btop = {
|
||||
enable = mkEnableOption "enable btop";
|
||||
|
||||
theme = mkOption {
|
||||
type = types.submodule {
|
||||
options = {
|
||||
file = mkOption {
|
||||
type = types.path;
|
||||
default = lib.snowfall.fs.get-file "modules/home/desktop/theme/palettes/nord.nix";
|
||||
description = "Nix file exporting a palette attrset.";
|
||||
};
|
||||
};
|
||||
};
|
||||
default = { };
|
||||
description = "btop theme palette configuration.";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user