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
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[main_bg]="#${config.colorScheme.palette.base00}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Main text color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[main_fg]="#${config.colorScheme.palette.base07}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Title color for boxes
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[title]="#${config.colorScheme.palette.base07}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Higlight color for keyboard shortcuts
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[hi_fg]="#${config.colorScheme.palette.base0E}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Background color of selected item in processes box
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[selected_bg]="#${config.colorScheme.palette.base0C}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Foreground color of selected item in processes box
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[selected_fg]="#${config.colorScheme.palette.base00}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Color of inactive/disabled text
|
2024-02-06 09:23:37 +01:00
|
|
|
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
|
2024-02-06 09:23:37 +01:00
|
|
|
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
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[proc_misc]="#${config.colorScheme.palette.base0C}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Cpu box outline color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[cpu_box]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Memory/disks box outline color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[mem_box]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Net up/down box outline color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[net_box]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Processes box outline color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[proc_box]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Box divider line and small boxes line color
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[div_line]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Temperature graph colors
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[temp_start]="#${config.colorScheme.palette.base0D}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[temp_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[temp_end]="#${config.colorScheme.palette.base0F}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# CPU graph colors
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[cpu_start]="#${config.colorScheme.palette.base0C}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[cpu_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[cpu_end]="#${config.colorScheme.palette.base0C}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Mem/Disk free meter
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[free_start]="#${config.colorScheme.palette.base0A}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[free_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[free_end]="#${config.colorScheme.palette.base0A}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Mem/Disk cached meter
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[cached_start]="#${config.colorScheme.palette.base09}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[cached_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[cached_end]="#${config.colorScheme.palette.base09}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Mem/Disk available meter
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[available_start]="#${config.colorScheme.palette.base0B}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[available_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[available_end]="#${config.colorScheme.palette.base0B}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Mem/Disk used meter
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[used_start]="#${config.colorScheme.palette.base08}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[used_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[used_end]="#${config.colorScheme.palette.base08}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Download graph colors
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[download_start]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[download_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[download_end]="#${config.colorScheme.palette.base0D}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
# Upload graph colors
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[upload_start]="#${config.colorScheme.palette.base02}"
|
2023-11-04 02:28:27 +01:00
|
|
|
theme[upload_mid]=""
|
2024-02-06 09:23:37 +01:00
|
|
|
theme[upload_end]="#${config.colorScheme.palette.base0E}"
|
2023-11-04 02:28:27 +01:00
|
|
|
|
|
|
|
'';
|
|
|
|
}
|