This commit is contained in:
Alexander Navarro 2023-02-13 20:07:23 -03:00
parent 4f0e213f4a
commit 117b20bb7b
15 changed files with 1204 additions and 33 deletions

72
config/tmux/tmux.conf Normal file
View file

@ -0,0 +1,72 @@
## Base Config
set -g default-terminal "screen-256color"
set -g mouse on
set -g history-limit 100000
set -g base-index 1 # start windows in 1
set-window-option -g pane-base-index 1
set-window-option -g mode-keys vi
unbind -T copy-mode-vi Space; #Default for begin-selection
unbind -T copy-mode-vi Enter; #Default for copy-selection
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
set -sg escape-time 0
## Keybindings
unbind C-b
unbind C-q
set -g prefix C-q
# Reload Config
unbind R
bind R source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Copy Mode
unbind [
bind V copy-mode
# Panes
unbind v
unbind s
unbind % # Split vertically
unbind '"' # Split horizontally
bind s split-window -h -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"
bind -r m resize-pane -Z # maximize pane
# Windows
unbind r
unbind n
unbind h
unbind l
bind r command-prompt "rename-window '%%'"
bind n new-window -c "#{pane_current_path}"
bind h previous-window
bind l next-window
## Plugins
run -b '~/.tmux/plugins/tpm/tpm'
set -g @plugin 'catppuccin/tmux'
# set -g @plugin 'rwxd/catppuccin-tmux'
set -g @plugin 'tmux-plugins/tmux-copycat'`
set -g @plugin 'laktak/extrakto'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'tmux-plugins/tpm'
## Plugin Config
set -g @catppuccin_flavour 'macchiato'
set -g @catppuccin_window_tabs_enabled on # or off to disable window_tabs
TMUX_FZF_LAUNCH_KEY="w"
TMUX_FZF_OPTIONS="-p -w 80% -h 60% -m"
# Tmux Managment
bind-key "F" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/session.sh switch"
bind-key "f" run-shell -b "$HOME/.tmux/plugins/tmux-fzf/scripts/window.sh switch"