From 328bc51221cdf01230535fb6acc2400d1357fcef Mon Sep 17 00:00:00 2001 From: vdbewout Date: Fri, 10 May 2024 18:16:51 +0000 Subject: [PATCH] refactor(theme): use whiskers --- catppuccin.tmux | 2 +- .../catppuccin_frappe.tmuxtheme | 0 .../catppuccin_latte.tmuxtheme | 10 +++---- .../catppuccin_macchiato.tmuxtheme | 0 .../catppuccin_mocha.tmuxtheme | 0 tmux.tera | 26 +++++++++++++++++++ 6 files changed, 32 insertions(+), 6 deletions(-) rename catppuccin-frappe.tmuxtheme => themes/catppuccin_frappe.tmuxtheme (100%) rename catppuccin-latte.tmuxtheme => themes/catppuccin_latte.tmuxtheme (77%) rename catppuccin-macchiato.tmuxtheme => themes/catppuccin_macchiato.tmuxtheme (100%) rename catppuccin-mocha.tmuxtheme => themes/catppuccin_mocha.tmuxtheme (100%) create mode 100644 tmux.tera diff --git a/catppuccin.tmux b/catppuccin.tmux index a2b6621a..5d86c327 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -42,7 +42,7 @@ main() { # '$key' stores the key. # '$val' stores the value. eval "local $key"="$val" - done <"${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme" + done <"${PLUGIN_DIR}/themes/catppuccin_${theme}.tmuxtheme" # status general local status_default status_justify status_background message_background diff --git a/catppuccin-frappe.tmuxtheme b/themes/catppuccin_frappe.tmuxtheme similarity index 100% rename from catppuccin-frappe.tmuxtheme rename to themes/catppuccin_frappe.tmuxtheme diff --git a/catppuccin-latte.tmuxtheme b/themes/catppuccin_latte.tmuxtheme similarity index 77% rename from catppuccin-latte.tmuxtheme rename to themes/catppuccin_latte.tmuxtheme index 16f078f9..af31a8dc 100644 --- a/catppuccin-latte.tmuxtheme +++ b/themes/catppuccin_latte.tmuxtheme @@ -2,13 +2,13 @@ # WARNING: hex colors can't contain capital letters # --> Catppuccin (Latte) -thm_bg="#dce0e8" +thm_bg="#eff1f5" thm_fg="#4c4f69" -thm_cyan="#179299" +thm_cyan="#04a5e5" thm_black="#e6e9ef" -thm_gray="#bcc0cc" -thm_magenta="#ea76cb" -thm_pink="#8839ef" +thm_gray="#ccd0da" +thm_magenta="#8839ef" +thm_pink="#ea76cb" thm_red="#d20f39" thm_green="#40a02b" thm_yellow="#df8e1d" diff --git a/catppuccin-macchiato.tmuxtheme b/themes/catppuccin_macchiato.tmuxtheme similarity index 100% rename from catppuccin-macchiato.tmuxtheme rename to themes/catppuccin_macchiato.tmuxtheme diff --git a/catppuccin-mocha.tmuxtheme b/themes/catppuccin_mocha.tmuxtheme similarity index 100% rename from catppuccin-mocha.tmuxtheme rename to themes/catppuccin_mocha.tmuxtheme diff --git a/tmux.tera b/tmux.tera new file mode 100644 index 00000000..da095ed7 --- /dev/null +++ b/tmux.tera @@ -0,0 +1,26 @@ +--- +whiskers: + version: "2.1.0" + matrix: + - flavor + filename: "themes/catppuccin_{{flavor.identifier}}.tmuxtheme" +--- +{%- set palette = flavor.colors -%} +# NOTE: you can use vars with $ and ${} as long as the str is double quoted: "" +# WARNING: hex colors can't contain capital letters + +# --> Catppuccin ({{ flavor.identifier | capitalize }}) +thm_bg="#{{ palette.base.hex | lower }}" +thm_fg="#{{ palette.text.hex | lower }}" +thm_cyan="#{{ palette.sky.hex| lower }}" +thm_black="#{{ palette.mantle.hex | lower }}" +thm_gray="#{{ palette.surface0.hex | lower }}" +thm_magenta="#{{ palette.mauve.hex | lower }}" +thm_pink="#{{ palette.pink.hex | lower }}" +thm_red="#{{ palette.red.hex | lower }}" +thm_green="#{{ palette.green.hex | lower }}" +thm_yellow="#{{ palette.yellow.hex | lower }}" +thm_blue="#{{ palette.blue.hex | lower }}" +thm_orange="#{{ palette.peach.hex | lower }}" +thm_black4="#{{ palette.surface2.hex | lower }}" +{% raw %}{% endraw %}{# Needs to end with a newline #}