diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..6088551 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,48 @@ +# Vim stuff +set-window-option -g mode-keys vi +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel +# Select panes with vim keys (lowercase) +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +# Resize panes with vim keys (uppercase) +bind -r H resize-pane -L 2 +bind -r J resize-pane -D 2 +bind -r K resize-pane -U 2 +bind -r L resize-pane -R 2 + +# The following are custom keys for creating a new pane full height left and right +bind - split-window -hbf +bind \\ split-window -hf + +# Set up plugins +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'wfxr/tmux-power' +set -g @tmux_power_theme '#2ECC71' # money green +#set -g @tmux_power_theme '#0088A8' # misano blue +#set -g @tmux_power_theme '#00FF00' # tmux green +#set -g @tmux_power_theme 'moon' +set -g @tmux_power_session_icon '💰' +set -g @tmux_power_date_format '%m/%d/%y' +set -g @tmux_power_time_format '%H:%M:%S' +set -g @tmux_power_show_user false +set -g @tmux_power_show_host false +set -g @tmux_power_show_session true + +# Session options +set -g base-index 1 # Start window numbering at 1 +set -g history-limit 10000 # Increase scrollback buffer size +set -g repeat-time 1000 # Set repeat delay +set -g detach-on-destroy off # Prevent tmux from detaching when session is destroyed. + +# The following colors are used as gradient colors +#set -g @tmux_power_g0 "#262626" +#set -g @tmux_power_g1 "#303030" +#set -g @tmux_power_g2 "#3a3a3a" +#set -g @tmux_power_g3 "#444444" +#set -g @tmux_power_g4 "#626262" + +# Initialize TPM +run '~/.tmux/plugins/tpm/tpm'