diff --git a/configure b/configure index 7c38789..176f136 100755 --- a/configure +++ b/configure @@ -27,7 +27,7 @@ case $1 in stow -v scripts exit 0 ;; - "vim" ) + "vim" ) echo "Installing vim config" stow -v vim cd ~/.vim/bundle @@ -46,6 +46,16 @@ case $1 in git clone git://github.com/vim-voom/VOoM.git exit 0 ;; + "tmux" ) + echo "Installing tmux config" + stow -v tmux + # Set up plugin manager + mkdir -p ~/.tmux/plugins + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm + #tmux source ~/.tmux.conf + echo "On first tmux start, run 'prefix + I' to install modules" + exit 0 + ;; * ) echo "$1 cannot be installed…" exit 1 diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..0c289d5 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,71 @@ +# GNU Screen prefix +unbind C-b +set -g prefix C-a + +# Open new-window in PWD +#bind c new-window -c "#{pane_current_path}" + +# Vi shortcut for copying (frees shortcut for emacs) +set-window-option -g mode-keys vi +set-window-option -g xterm-keys on + +# Last window +#bind-key C-a last-window + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-sidebar' +set -g @plugin 'tmux-plugins/tmux-copycat' +set -g @plugin 'tmux-plugins/tmux-pain-control' +set -g @plugin 'tmux-plugins/tmux-resurrect' + +# Configuration for tmux-resurrect +set -g @resurrect-processes 'mutt journalctl emacs' +set -g @resurrect-strategy-vim 'session' + +# statusbar -------------------------------------------------------------- +set -g display-time 2000 + +# allow mouse mode +set -g mouse-utf8 on +set -g mouse on + +# center align the window list +set -g status-justify centre +set -g status-right "(" +set -g status-left ")" + +#### COLOUR (Solarized light) +# default statusbar colors +set-option -g status-bg white #base2 +set-option -g status-fg yellow #yellow +set-option -g status-attr default + +# default window title colors +set-window-option -g window-status-fg brightyellow #base00 +set-window-option -g window-status-bg default +#set-window-option -g window-status-attr dim + +# active window title colors +set-window-option -g window-status-current-fg brightred #orange +set-window-option -g window-status-current-bg default +#set-window-option -g window-status-current-attr bright + +# pane border +set-option -g pane-border-fg white #base2 +set-option -g pane-active-border-fg brightcyan #base1 + +# message text +set-option -g message-bg white #base2 +set-option -g message-fg brightred #orange + +# pane number display +set-option -g display-panes-active-colour blue #blue +set-option -g display-panes-colour brightred #orange + +# clock +set-window-option -g clock-mode-colour green #green + +# Initialize TMUX plugin manager +run '~/.tmux/plugins/tpm/tpm'