diff --git a/stow/.config/matugen/config.toml b/stow/.config/matugen/config.toml index 2b37f32..0a86e13 100644 --- a/stow/.config/matugen/config.toml +++ b/stow/.config/matugen/config.toml @@ -77,6 +77,11 @@ input_path = './templates/vicinae.toml' output_path = '~/.local/share/vicinae/themes/matugen.toml' post_hook = 'vicinae theme set matugen' +[templates.tmux] +input_path = './templates/tmux.conf' +output_path = '~/.cache/matugen/tmux.conf' +post_hook = 'tmux source-file ~/.cache/matugen/tmux.conf' + [templates.macos-accent] colors_to_compare = [ { name = "-1", color = "#696766" }, # graphite diff --git a/stow/.config/matugen/templates/tmux.conf b/stow/.config/matugen/templates/tmux.conf new file mode 100644 index 0000000..ac1c289 --- /dev/null +++ b/stow/.config/matugen/templates/tmux.conf @@ -0,0 +1,13 @@ +set -g status-style "bg=default" +set -g status-fg "{{ colors.tertiary.default.hex }}" +set -g status-left "#[bg={{ colors.primary_container.default.hex }},fg={{ colors.on_primary_container.default.hex }}]#{?client_prefix,#[reverse]#[bg={{ colors.on_secondary_container.default.hex }}]#[fg=black]#[noreverse]} #S " +set -g status-right "#[fg={{ colors.secondary.default.hex }}]%d/%m #[bg={{ colors.primary_container.default.hex }},fg={{ colors.on_primary_container.default.hex }}] #H " + +# max allowed lenth for statuses to flow into +set -g status-left-length 20 +set -g status-right-length 20 + +# tab bar +set -g window-status-format " #I #W " +set -g window-status-current-format " #I #W " +set -g window-status-current-style bg={{ colors.secondary_container.default.hex }},fg={{ colors.on_secondary_container.default.hex }},bold diff --git a/stow/.config/tmux/tmux.conf b/stow/.config/tmux/tmux.conf index 68d3069..7722939 100644 --- a/stow/.config/tmux/tmux.conf +++ b/stow/.config/tmux/tmux.conf @@ -63,3 +63,7 @@ set -g default-terminal "${TERM}" set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' set -gq allow-passthrough on + +# matugen +if "test -f ~/.cache/matugen/tmux.conf" \ + "source-file ~/.cache/matugen/tmux.conf"