diff --git a/_setup.sh b/_setup.sh index d335da8..7db9bb2 100755 --- a/_setup.sh +++ b/_setup.sh @@ -26,6 +26,12 @@ ln -s $PATH_PREFIX/fzf.zsh ~/.fzf.zsh rm -r ~/.config/lf ln -s $PATH_PREFIX/config/lf ~/.config/lf +# get tmux plugin manager going if needed +if [[ ! -d ~/.tmux/plugins/tpm ]]; then + mkdir -p ~/.tmux/plugins/tpm + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +fi + # get asdf going if needed if [[ ! -d ~/.asdf ]]; then git clone https://github.com/asdf-vm/asdf.git ~/.asdf @@ -34,5 +40,6 @@ if [[ ! -d ~/.asdf ]]; then cd $PATH_PREFIX fi -echo "install 'exa fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone' if needed" +echo "exa fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone" echo "copy restic.sh if desired/needed" +echo "run tmux and do -I to install plugins and finish setup" diff --git a/tmux.conf b/tmux.conf index 846a954..4c32b46 100644 --- a/tmux.conf +++ b/tmux.conf @@ -5,6 +5,9 @@ set -g history-limit 100000 set -g renumber-windows on set -g clock-mode-style 24 set -g status-interval 5 +set -g display-time 3000 +set -g status-keys emacs +setw -g aggressive-resize on # Enable RGB colour if running in xterm(1) set-option -sa terminal-overrides ",xterm*:Tc" @@ -35,3 +38,18 @@ set -g status-bg yellow # Status line/bar set -g status-right " #{?client_prefix,#[reverse]#[noreverse] ,} %H:%M %Y-%m-%d" set -g window-status-current-style "underscore" + +# plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'laktak/extrakto' +set -g @plugin 'jaclu/tmux-menus' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' + +# plugin config +# clipboard related +set -g @extrakto_clip_tool 'tmux loadb -' +if 'command -v termux-clipboard-set' { + set -g @extrakto_clip_tool termux-clipboard-set +}