Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(theme): use whiskers #207

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion catppuccin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions catppuccin-latte.tmuxtheme → themes/catppuccin_latte.tmuxtheme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions tmux.tera
Original file line number Diff line number Diff line change
@@ -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 #}