diff --git a/init.sh b/init.sh index fd7e695..43b0d08 100755 --- a/init.sh +++ b/init.sh @@ -29,6 +29,7 @@ mkdir ~/.ssh echo "Stowing Configs" stow tmux #Add Tmux themes + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm git clone https://github.com/wfxr/tmux-power.git "$HOME/stevset/tmux/t-theme" stow vim stow prezto diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 165206b..5e1c6cb 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,22 +1,22 @@ -# -- general ------------------------------------------------------------------- -set -g default-terminal "screen-256color" # colors! +#Tmux Plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'wfxr/tmux-power' +set -g @plugin 'tmux-plugins/tmux-prefix-highlight' +set -g @plugin 'CrispyConductor/tmux-copy-toolkit' +set -g @plugin 'tmux-plugins/tmux-pain-control' + +# -- general set -g xterm-keys on # remap prefix to Control + a set -g prefix C-a unbind C-b bind C-a send-prefix -set -sg escape-time 0 #Mouse/Scrollback Tweaks -set -g history-limit 100000 -#setw -g mode-keys vi set-option -g mouse on set-window-option -g xterm-keys on -#set-option -g pane-active-border-fg yellow - -#New Keybindings -bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" # split panes using | and - bind | split-window -h @@ -30,15 +30,9 @@ bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D -# For nested tmux'es -bind a send-prefix - #Powerline Settings run-shell "powerline-daemon -q" source "/usr/share/powerline/bindings/tmux/powerline.conf" -#Themes -set -g @tmux_power_theme 'default' -run-shell "$HOME/stevset/tmux/t-theme/tmux-power.tmux" #Misc Enables set-option -g renumber-windows on @@ -63,4 +57,15 @@ bind m \ bind M \ set-option -g mouse off \;\ display 'Mouse: OFF' +#plugin settings +# Prefix Highlight: 'L' for left only, 'R' for right only and 'LR' for both +set -g @tmux_power_prefix_highlight_pos 'LR' +run-shell "$HOME/.tmux/plugins/tmux-prefix-highlight/prefix_highlight.tmux" +#Themes +set -g @tmux_power_theme 'default' +run-shell "$HOME/.tmux/plugins/tmux-power/tmux-power.tmux" +#Pain Control +run-shell "$HOME/.tmux/plugins/tmux-pain-control/pain_control.tmux" +#init tmux plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm'