refactor(theme): use whiskers (#207)
This commit is contained in:
parent
804f060fe1
commit
2292669be3
6 changed files with 32 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
26
tmux.tera
Normal file
26
tmux.tera
Normal file
|
@ -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 $<var> and ${<var>} 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 #}
|
Loading…
Add table
Add a link
Reference in a new issue