92 lines
3.1 KiB
Nix
Raw Permalink Normal View History

2023-11-04 02:28:27 +01:00
{ pkgs, config, ... }: {
home.packages = with pkgs; [ btop ];
xdg.configFile."btop/themes/${config.colorScheme.slug}.theme".text = ''
# Theme generated from: ${config.colorScheme.slug}
# Main background, empty for terminal default, need to be empty if you want transparent background
theme[main_bg]="#${config.colorScheme.palette.base00}"
2023-11-04 02:28:27 +01:00
# Main text color
theme[main_fg]="#${config.colorScheme.palette.base07}"
2023-11-04 02:28:27 +01:00
# Title color for boxes
theme[title]="#${config.colorScheme.palette.base07}"
2023-11-04 02:28:27 +01:00
# Higlight color for keyboard shortcuts
theme[hi_fg]="#${config.colorScheme.palette.base0E}"
2023-11-04 02:28:27 +01:00
# Background color of selected item in processes box
theme[selected_bg]="#${config.colorScheme.palette.base0C}"
2023-11-04 02:28:27 +01:00
# Foreground color of selected item in processes box
theme[selected_fg]="#${config.colorScheme.palette.base00}"
2023-11-04 02:28:27 +01:00
# Color of inactive/disabled text
theme[inactive_fg]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
theme[graph_text]="#${config.colorScheme.palette.base05}"
2023-11-04 02:28:27 +01:00
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
theme[proc_misc]="#${config.colorScheme.palette.base0C}"
2023-11-04 02:28:27 +01:00
# Cpu box outline color
theme[cpu_box]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Memory/disks box outline color
theme[mem_box]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Net up/down box outline color
theme[net_box]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Processes box outline color
theme[proc_box]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Box divider line and small boxes line color
theme[div_line]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
# Temperature graph colors
theme[temp_start]="#${config.colorScheme.palette.base0D}"
2023-11-04 02:28:27 +01:00
theme[temp_mid]=""
theme[temp_end]="#${config.colorScheme.palette.base0F}"
2023-11-04 02:28:27 +01:00
# CPU graph colors
theme[cpu_start]="#${config.colorScheme.palette.base0C}"
2023-11-04 02:28:27 +01:00
theme[cpu_mid]=""
theme[cpu_end]="#${config.colorScheme.palette.base0C}"
2023-11-04 02:28:27 +01:00
# Mem/Disk free meter
theme[free_start]="#${config.colorScheme.palette.base0A}"
2023-11-04 02:28:27 +01:00
theme[free_mid]=""
theme[free_end]="#${config.colorScheme.palette.base0A}"
2023-11-04 02:28:27 +01:00
# Mem/Disk cached meter
theme[cached_start]="#${config.colorScheme.palette.base09}"
2023-11-04 02:28:27 +01:00
theme[cached_mid]=""
theme[cached_end]="#${config.colorScheme.palette.base09}"
2023-11-04 02:28:27 +01:00
# Mem/Disk available meter
theme[available_start]="#${config.colorScheme.palette.base0B}"
2023-11-04 02:28:27 +01:00
theme[available_mid]=""
theme[available_end]="#${config.colorScheme.palette.base0B}"
2023-11-04 02:28:27 +01:00
# Mem/Disk used meter
theme[used_start]="#${config.colorScheme.palette.base08}"
2023-11-04 02:28:27 +01:00
theme[used_mid]=""
theme[used_end]="#${config.colorScheme.palette.base08}"
2023-11-04 02:28:27 +01:00
# Download graph colors
theme[download_start]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
theme[download_mid]=""
theme[download_end]="#${config.colorScheme.palette.base0D}"
2023-11-04 02:28:27 +01:00
# Upload graph colors
theme[upload_start]="#${config.colorScheme.palette.base02}"
2023-11-04 02:28:27 +01:00
theme[upload_mid]=""
theme[upload_end]="#${config.colorScheme.palette.base0E}"
2023-11-04 02:28:27 +01:00
'';
}