diff --git a/README.md b/README.md index 16986cf..1579811 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ In case any of these bindings interfere with other commands, they can be tempora ## Installation 1. Clone this repository to your home folder. -2. Establish a symbolic link from the tmux.conf file in the repository folder your home folder: - ln -s /home/$USER/fmux/.tmux.conf /home/$USER/.tmux.conf +2. Establish a symbolic link from the tmux.conf file in the repository folder your home folder: + ln -s /home/$USER/fmux/tmux.conf /home/$USER/.tmux.conf + If your tmux version is 2.9 or greater, use `tmux-2.9.conf` instead. Version 2.9 introduced some [breaking changes](https://github.com/tmux/tmux/issues/1689) to the style formatting. 3. Start a new tmux session, or reload the configuration file in existing session(s). diff --git a/tmux-2.9.conf b/tmux-2.9.conf new file mode 100644 index 0000000..34e1848 --- /dev/null +++ b/tmux-2.9.conf @@ -0,0 +1,46 @@ +# fmux v0.5 +# LWS 2017 + +# source local file +source ~/.tmux-local.conf + +# make tmux play nice with various apps +set -g default-terminal "screen-256color" + +# source ~/fmux/f-keys, which adds the useful byobu F-key shortcuts +source ~/fmux/f-keys + +# pane border colors + +set -g pane-border-style fg=black +set -g pane-active-border fg=white + +# +# status bar shenanigans +# + +set -g status on +setw -g monitor-activity on + +# bar refresh interval +set -g status-interval 5 + +# don't rename panes, renumber panes so they stay in order after one is closed +set-option -g allow-rename off +set -g renumber-windows on +tmux_conf_new_window_retain_current_path=false +tmux_conf_new_pane_retain_current_path=true +set -g window-status-separator '' + +set -g @ssh_auto_rename_window off +set -g status-style 'fg=colour250,bg=colour0' + +set-window-option -g status-left "#{?client_prefix,#[bg=coolour250]#[bg=colour34 fg=colour255],} #S " +set-window-option -g status-right "#(~/fmux/tmux-right.sh)" + +set-window-option -g window-status-style "fg=colour250,bg=colour237" +set-window-option -g window-status-current-style "fg=colour255,bg=colour34" +set-window-option -g window-status-bell-style "fg=colour160,bg=colour237" +set-window-option -g window-status-activity-style "fg=colour34,bg=colour237" +set-window-option -g window-status-format ' #I #W ' +set-window-option -g window-status-current-format ' #I #W ' diff --git a/.tmux.conf b/tmux.conf similarity index 100% rename from .tmux.conf rename to tmux.conf