commit deb2a2a172c64cc002d1718728b34c77186198ec Author: Danielle McLean Date: Mon Feb 13 12:55:59 2017 +1100 Initial commit, fairly simple tmux.conf living in a good (XDG) location diff --git a/.stow-rename b/.stow-rename new file mode 100644 index 0000000..4376d30 --- /dev/null +++ b/.stow-rename @@ -0,0 +1 @@ +config => .config diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf new file mode 100644 index 0000000..02cc89f --- /dev/null +++ b/config/tmux/tmux.conf @@ -0,0 +1,39 @@ +set -s escape-time 0 + +set -g focus-events on +set -g set-titles on +setw -g aggressive-resize on +setw -g automatic-rename on + + +set -g default-command "$SHELL" +set -g default-terminal "screen-256color" + +set -g mouse on +setw -g mode-keys vi +set -g status-keys vi +unbind C-b +set -g prefix C-a +bind R source-file $XDG_CONFIG_HOME/tmux/tmux.conf +bind C-a last-window +bind a send-prefix + +# This stuff was yanked from http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/#changing-the-look-of-tmux +set -g status-interval 2 +set -g status-left '' +set -g status-left-length 20 +set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S ' +set -g status-right-length 50 + +set -g status-justify left +set -g status-bg default +set -g status-fg colour12 + +setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' +setw -g window-status-bg default +setw -g window-status-fg colour138 + +setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' +setw -g window-status-current-attr bold +setw -g window-status-current-bg colour238 +setw -g window-status-current-fg colour81 diff --git a/config/zsh/login/tmux b/config/zsh/login/tmux new file mode 100644 index 0000000..b252f55 --- /dev/null +++ b/config/zsh/login/tmux @@ -0,0 +1,3 @@ +#! zsh +alias tmux='tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf' +export TMUX_TMPDIR=$XDG_RUNTIME_DIR