From eed614e017e31fa8c88e4d62ca98a6d6add756e8 Mon Sep 17 00:00:00 2001 From: afonso Date: Thu, 22 Feb 2024 11:33:07 +0000 Subject: [PATCH] [TMUX] updated config --- .config/tmux/plugins/tmux-fzf | 1 + .../tmux/themes/catppuccin-frappe.tmuxtheme | 14 ++++++++++ .../tmux/themes/catppuccin-latte.tmuxtheme | 14 ++++++++++ .config/tmux/tmux_plugins.conf | 16 ++++++----- .config/tmux/tmux_status_bar.conf | 27 +++++++++++++++++++ 5 files changed, 65 insertions(+), 7 deletions(-) create mode 160000 .config/tmux/plugins/tmux-fzf create mode 100644 .config/tmux/themes/catppuccin-frappe.tmuxtheme create mode 100644 .config/tmux/themes/catppuccin-latte.tmuxtheme create mode 100644 .config/tmux/tmux_status_bar.conf diff --git a/.config/tmux/plugins/tmux-fzf b/.config/tmux/plugins/tmux-fzf new file mode 160000 index 0000000..6b31cbe --- /dev/null +++ b/.config/tmux/plugins/tmux-fzf @@ -0,0 +1 @@ +Subproject commit 6b31cbe454649736dcd6dc106bb973349560a949 diff --git a/.config/tmux/themes/catppuccin-frappe.tmuxtheme b/.config/tmux/themes/catppuccin-frappe.tmuxtheme new file mode 100644 index 0000000..dc84b4d --- /dev/null +++ b/.config/tmux/themes/catppuccin-frappe.tmuxtheme @@ -0,0 +1,14 @@ +# --> Catppuccin (Frappe) +thm_bg="#303446" +thm_fg="#c6d0f5" +thm_cyan="#99d1db" +thm_black="#292c3c" +thm_gray="#414559" +thm_magenta="#ca9ee6" +thm_pink="#f4b8e4" +thm_red="#e78284" +thm_green="#a6d189" +thm_yellow="#e5c890" +thm_blue="#8caaee" +thm_orange="#ef9f76" +thm_black4="#626880" diff --git a/.config/tmux/themes/catppuccin-latte.tmuxtheme b/.config/tmux/themes/catppuccin-latte.tmuxtheme new file mode 100644 index 0000000..ea4623c --- /dev/null +++ b/.config/tmux/themes/catppuccin-latte.tmuxtheme @@ -0,0 +1,14 @@ +# --> Catppuccin (Latte) +"bg=#dce0e8 , +fg=#4c4f69 , +cyan=#179299 , +black=#e6e9ef , +gray=#bcc0cc , +magenta=#ea76cb, +pink=#8839ef , +red=#d20f39 , +green=#40a02b , +yellow=#df8e1d , +blue=#1e66f5 , +orange=#fe640b , +black4=#acb0be ," diff --git a/.config/tmux/tmux_plugins.conf b/.config/tmux/tmux_plugins.conf index 044ac7c..fff680a 100644 --- a/.config/tmux/tmux_plugins.conf +++ b/.config/tmux/tmux_plugins.conf @@ -4,16 +4,18 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' #set -g @plugin 'catppuccin/tmux' -#set -g @plugin 'tmux-plugins/tmux-resurrect' -#set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'sainnhe/tmux-fzf' #set -g @plugin 'tomhey/tmux-remote-sessions' # Plugin settings #set -g @catppuccin_flavour 'latte' #set -g @catppuccin_window_tabs_enabled on -#set -g @resurrect-strategy-nvim 'session' -#set -g @resurrect-capture-pane-contents 'on' -#set -g @continuum-restore 'on' -#set -g @continuum-save-interval '10' -#set -g @continuum-boot 'on' +set -g @resurrect-strategy-nvim 'session' +set -g @resurrect-capture-pane-contents 'on' +set -g @continuum-restore 'on' +set -g @continuum-save-interval '5' +set -g @continuum-boot 'on' +set -g @continuum-boot-options 'alacritty' diff --git a/.config/tmux/tmux_status_bar.conf b/.config/tmux/tmux_status_bar.conf new file mode 100644 index 0000000..5aea37c --- /dev/null +++ b/.config/tmux/tmux_status_bar.conf @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# Hardcoded values +set -g status-bg "#282828" +set -g @unfocused-fg "#d4be98" +set -g @focused-bg "#d4be98" +set -g @focused-fg "#282828" +# Set status bar position +set -g status-position top + +# Set status bar style +set -g status-style ' #[bg=#{status-bg},fg=#{@unfocused-fg}] ' + +# Set status bar justification +set -g status-justify left + +# Set right side of the status bar +set -g status-right '#[bg=#{status-bg},fg=#{@unfocused-fg}] #S' + +# Set window status format +set -g window-status-format ' #I:#W ' + +# Set window status format +set -g window-status-format ' #[bg=#{status-bg},fg=#{@unfocused-fg}] #I:#W ' + +# Set window status format for the current window +set -g window-status-current-format ' #[bg=#{@focused-bg},fg=#{@focused-fg}] #I:#W '