diff --git a/tmux.conf b/tmux.conf index 71ddb9a..45a0094 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,13 +1,12 @@ -set -g @plugin 'tmux-plugins/tpm' # tmux plugin manager -set -g @plugin 'tmux-plugins/tmux-sensible' # sensible defaults for tmux -set -g @plugin 'catppuccin/tmux' # tmux theme -set -g @plugin 'tmux-plugins/tmux-resurrect' # save/restore tmux sessions -set -g @plugin 'tmux-plugins/tmux-continuum' # autosave tmux sessions +set -g @plugin "tmux-plugins/tpm" # tmux plugin manager +set -g @plugin "tmux-plugins/tmux-sensible" # sensible defaults for tmux +set -g @plugin "tmux-plugins/tmux-resurrect" # save/restore tmux sessions +set -g @plugin "tmux-plugins/tmux-continuum" # autosave tmux sessions # tmux-resurrect -set -g @resurrect-strategy-nvim 'session' # save nvim sessions -set -g @resurrect-capture-pane-contents 'on' # capture tmux panes -set -g @continuum-restore 'on' # automatically restore tmux session on server start +set -g @resurrect-strategy-nvim "session" # save nvim sessions +set -g @resurrect-capture-pane-contents "on" # capture tmux panes +set -g @continuum-restore "on" # automatically restore tmux session on server start run '~/.tmux/plugins/tpm/tpm' @@ -26,8 +25,8 @@ bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel bind-key v copy-mode set -g set-clipboard on -set -as terminal-feature ',*:clipboard' -set -s copy-command 'wl-copy' +set -as terminal-feature ",*:clipboard" +set -s copy-command "xsel -i -b" # vim style pane bind h select-pane -L @@ -44,3 +43,21 @@ bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" +# Make the status line pretty and add some modules +set -g status-right-length 100 +set -g status-left-length 100 +set -g status-left "" +set -g status-right "#{E:@catppuccin_status_application}" +set -ag status-right "#{E:@catppuccin_status_session}" +# setw -g window-status-format "##{b:pane_current_path}" + +# catppuccin +# Configure the catppuccin plugin +# set -g @catppuccin_flavor "mocha" +set -g @catppuccin_flavor "frappe" +set -g @catppuccin_window_status_style "basic" +set -g @catppuccin_pane_number_position "right" +set -g @catppuccin_window_text "#{b:pane_current_path}" +set -g @catppuccin_window_current_text "#{b:pane_current_path}" +set -g @catppuccin_pane_default_text "pane" +run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux