Skip to content

Commit 69ed581

Browse files
committed
feat(matugen-tmux): add dynamic theme template
Add matugen template to generate tmux theme colors from wallpaper. Configures catppuccin plugin to use generated mauve and sapphire colors for host and uptime status indicators.
1 parent b122c88 commit 69ed581

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

.github/scripts/verify-dotfiles.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FILES=(
1212
"$HOME/.config/go/env"
1313
"$HOME/.config/matugen/config.toml"
1414
"$HOME/.config/matugen/templates/starship.toml"
15+
"$HOME/.config/matugen/templates/tmux.conf"
1516
"$HOME/.config/mimeapps.list"
1617
"$HOME/.config/mpv/mpv.conf"
1718
"$HOME/.config/niri/config.kdl"

dot_config/matugen/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
[templates.starship]
44
input_path = '~/.config/matugen/templates/starship.toml'
55
output_path = '~/.config/starship.toml'
6+
7+
[templates.tmux]
8+
input_path = '~/.config/matugen/templates/tmux.conf'
9+
output_path = '~/.config/tmux/theme.conf'
10+
post_hook = 'tmux source-file ~/.config/tmux/theme.conf'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set -gq @thm_mauve "{{colors.primary_fixed_dim.default.hex}}"
2+
set -gq @thm_sapphire "{{colors.tertiary.default.hex}}"
3+
set -gq @catppuccin_host_color "#{@thm_mauve}"
4+
set -gq @catppuccin_uptime_color "#{@thm_sapphire}"

dot_config/tmux/tmux.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ bind % split-window -h -c "#{pane_current_path}"
5454
bind '"' split-window -v -c "#{pane_current_path}"
5555

5656
# Configure catppuccin plugin
57+
source-file -q ~/.config/tmux/theme.conf
5758
set -g @catppuccin_flavor "mocha"
5859
set -g @catppuccin_status_background "none"
5960
set -g @catppuccin_window_status_style "custom"

0 commit comments

Comments
 (0)