commit 8a0e49a0dad407c125a348882c17d273d12730dc Author: Joost Agterhoek Date: Fri Nov 1 13:52:06 2024 +0100 Add .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..6826b54 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,68 @@ +setw -g mode-keys vi + +# vim-like pane resizing +bind -r C-k resize-pane -U +bind -r C-j resize-pane -D +bind -r C-h resize-pane -L +bind -r C-l resize-pane -R + +# vim-like pane switching +bind -r k select-pane -U +bind -r j select-pane -D +bind -r h select-pane -L +bind -r l select-pane -R + +# and now unbind keys +unbind Up +unbind Down +unbind Left +unbind Right + +unbind C-Up +unbind C-Down +unbind C-Left +unbind C-Right + +bind-key -n C-S-Left swap-window -t -1; select-window -t -1 +bind-key -n C-S-Right swap-window -t +1; select-window -t +1 + +# creating and killing new sessions +bind S command-prompt -p "New Session:" "new-session -A -s '%%'" +bind K confirm kill-session + +# From Ctrl-B to Ctrl-A +unbind-key C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# Setting up tmux package manager (TPM) +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Trying out tmux themes + +### catppuccin: +# set -g @plugin 'catppuccin/tmux' +# run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux +# set -g @catppuccin_flavor 'macchiato' # latte, frappe, macchiato or mocha + +### minimal theme (used previously:) +set -g @plugin 'niksingh710/minimal-tmux-status' + +### toggle status bar +bind-key b set-option status + +### status bar transparent +set status-bg default + +# automatically renumber windows +set-option -g renumber-windows on + +# fuzzy search terminal output (prefix-key -> tab) + +set -g @plugin 'laktak/extrakto' + +# Trying to get image.nvim working +set -gq allow-passthrough on + +run '~/.tmux/plugins/tpm/tpm'