From d12b1a2c03af966693a865c18fb1fd370c8b008a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 7 May 2017 01:20:00 +0200 Subject: [PATCH] add tmux config --- bin/install.sh | 2 +- bin/update-dotfiles.sh | 4 +- tmux.conf | 85 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 tmux.conf diff --git a/bin/install.sh b/bin/install.sh index b57e6d6..c67e735 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -15,7 +15,7 @@ dir=$DOTFILES_DIR # list of files/folders to symlink in homedir -files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" +files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin tmux.conf" # ---------------------------------------------------------------------- diff --git a/bin/update-dotfiles.sh b/bin/update-dotfiles.sh index 81c3425..6a952e0 100755 --- a/bin/update-dotfiles.sh +++ b/bin/update-dotfiles.sh @@ -15,7 +15,7 @@ dir=$DOTFILES_DIR # list of files/folders to symlink in homedir -files="aliases bashrc bash_profile bash_paths bash_prompt editorconfig exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" +files="aliases bashrc bash_profile bash_paths bash_prompt editorconfig exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin tmux.conf" # ---------------------------------------------------------------------- @@ -43,3 +43,5 @@ done # ---------------------------------------------------------------------- source ~/.bash_profile + +exit diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..d64d045 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,85 @@ + +set -g default-terminal "screen-256color" + +set -g base-index 1 + +set -g history-limit 10000 + +set-option -g mouse on + +# panes +set -g pane-border-fg "#444444" +set -g pane-active-border-fg "#444444" + +# enable activity alerts +setw -g monitor-activity on +set -g visual-activity on + +set -g display-time 1000 +set -g status-interval 10 + +set-window-option -g window-status-fg colour148 +set-window-option -g window-status-bg black +set-window-option -g window-status-attr bright + +set-window-option -g window-status-current-fg white +set-window-option -g window-status-current-bg "#444444" +set-window-option -g window-status-current-attr bold + +set-window-option -g window-status-activity-fg colour202 +set-window-option -g window-status-activity-bg "#444444" +set-window-option -g window-status-activity-attr bold + +set -g window-status-format "#[fg=#d75f00]#I#[fg=default] #W" +set -g window-status-current-format "#[fg=#d75f00]#I#[fg=default] #W" + +# status config +set -g status-left-length 70 +set -g status-right-length 70 + +set -g status-left '#[fg=colour202]#H' +set -g status-right "uptime #(uptime | awk '{print $3}'|sed 's/,//') #[fg=colour148] %H:%M" + +set -g status-fg white +set -g status-bg default + +set-option -g status-position bottom + +# keys +#unbind C-b +#set -g prefix C-a + +set -g status-keys vi +setw -g mode-keys vi + +# resize +bind -n M-, resize-pane -L 30 +bind -n M-. resize-pane -R 30 + +# creating windows +bind -n M-w new-window + +# kill current window +bind -n M-k confirm kill-window + +# creating splits +bind -n M-S split-window -v +bind -n M-s split-window -h + +# switching panes +bind -n M-h select-pane -L +bind -n M-j select-pane -D +bind -n M-k select-pane -U +bind -n M-l select-pane -R + +# switching windows +bind -n M-u select-window -t :- +bind -n M-i select-window -t :+ + +# reload configuration +bind -n M-r source-file ~/.tmux.conf + +# detach +bind-key -n C-M-q detach + +set -s escape-time 0 \ No newline at end of file