From 42d9e90f7037a11e0ab0bad0f5fe499c8589df78 Mon Sep 17 00:00:00 2001 From: TechDufus Date: Thu, 19 Dec 2024 11:31:27 -0600 Subject: [PATCH] btop: Adding catppuccin theme. --- roles/btop/files/btop.conf | 2 +- roles/btop/files/catppuccin_mocha.theme | 83 +++++++++++++++++++++++++ roles/btop/tasks/main.yml | 7 +++ 3 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 roles/btop/files/catppuccin_mocha.theme diff --git a/roles/btop/files/btop.conf b/roles/btop/files/btop.conf index cc9972c2..63c4d482 100644 --- a/roles/btop/files/btop.conf +++ b/roles/btop/files/btop.conf @@ -2,7 +2,7 @@ #* Color theme, looks for a .theme file in "/usr/[local/]share/bpytop/themes" and "~/.config/bpytop/themes", "Default" for builtin default theme. #* Prefix name by a plus sign (+) for a theme located in user themes folder, i.e. color_theme="+monokai" -color_theme="Default" +color_theme="catpputtin_mocha" #* If the theme set background should be shown, set to False if you want terminal background transparency theme_background=False diff --git a/roles/btop/files/catppuccin_mocha.theme b/roles/btop/files/catppuccin_mocha.theme new file mode 100644 index 00000000..0809c235 --- /dev/null +++ b/roles/btop/files/catppuccin_mocha.theme @@ -0,0 +1,83 @@ +# Main background, empty for terminal default, need to be empty if you want transparent background +theme[main_bg]="#1e1e2e" + +# Main text color +theme[main_fg]="#cdd6f4" + +# Title color for boxes +theme[title]="#cdd6f4" + +# Highlight color for keyboard shortcuts +theme[hi_fg]="#89b4fa" + +# Background color of selected item in processes box +theme[selected_bg]="#45475a" + +# Foreground color of selected item in processes box +theme[selected_fg]="#89b4fa" + +# Color of inactive/disabled text +theme[inactive_fg]="#7f849c" + +# Color of text appearing on top of graphs, i.e uptime and current network graph scaling +theme[graph_text]="#f5e0dc" + +# Background color of the percentage meters +theme[meter_bg]="#45475a" + +# Misc colors for processes box including mini cpu graphs, details memory graph and details status text +theme[proc_misc]="#f5e0dc" + +# CPU, Memory, Network, Proc box outline colors +theme[cpu_box]="#cba6f7" #Mauve +theme[mem_box]="#a6e3a1" #Green +theme[net_box]="#eba0ac" #Maroon +theme[proc_box]="#89b4fa" #Blue + +# Box divider line and small boxes line color +theme[div_line]="#6c7086" + +# Temperature graph color (Green -> Yellow -> Red) +theme[temp_start]="#a6e3a1" +theme[temp_mid]="#f9e2af" +theme[temp_end]="#f38ba8" + +# CPU graph colors (Teal -> Lavender) +theme[cpu_start]="#94e2d5" +theme[cpu_mid]="#74c7ec" +theme[cpu_end]="#b4befe" + +# Mem/Disk free meter (Mauve -> Lavender -> Blue) +theme[free_start]="#cba6f7" +theme[free_mid]="#b4befe" +theme[free_end]="#89b4fa" + +# Mem/Disk cached meter (Sapphire -> Lavender) +theme[cached_start]="#74c7ec" +theme[cached_mid]="#89b4fa" +theme[cached_end]="#b4befe" + +# Mem/Disk available meter (Peach -> Red) +theme[available_start]="#fab387" +theme[available_mid]="#eba0ac" +theme[available_end]="#f38ba8" + +# Mem/Disk used meter (Green -> Sky) +theme[used_start]="#a6e3a1" +theme[used_mid]="#94e2d5" +theme[used_end]="#89dceb" + +# Download graph colors (Peach -> Red) +theme[download_start]="#fab387" +theme[download_mid]="#eba0ac" +theme[download_end]="#f38ba8" + +# Upload graph colors (Green -> Sky) +theme[upload_start]="#a6e3a1" +theme[upload_mid]="#94e2d5" +theme[upload_end]="#89dceb" + +# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve) +theme[process_start]="#74c7ec" +theme[process_mid]="#b4befe" +theme[process_end]="#cba6f7" diff --git a/roles/btop/tasks/main.yml b/roles/btop/tasks/main.yml index 6f26aa3e..49a47242 100644 --- a/roles/btop/tasks/main.yml +++ b/roles/btop/tasks/main.yml @@ -16,9 +16,16 @@ loop: - ~/.config - ~/.config/btop + - ~/.config/btop/themes - name: "BTOP | Copy btop config" ansible.builtin.copy: src: btop.conf dest: ~/.config/btop/btop.conf mode: "0644" + +- name: "BTOP | Copy btop colors" + ansible.builtin.copy: + src: catppuccin_mocha.theme + dest: ~/.config/btop/themes/catppuccin_mocha.theme + mode: "0644"