From 755da51710d761e0a053ebad2099423decf0e88a Mon Sep 17 00:00:00 2001 From: Blubber Date: Sun, 16 Oct 2016 22:48:52 +0200 Subject: refactored tmux conf --- .tmux.conf | 68 --------------------------------------------------------- bashrc | 3 +-- tmux.conf | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+), 70 deletions(-) delete mode 100644 .tmux.conf create mode 100644 tmux.conf diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 30528ef..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,68 +0,0 @@ -### Basic Settings - -# re-map prefix key -set -g prefix C-s -bind-key a send-prefix # for nested tmux sessions -# re-source tmux.conf -bind-key r source-file ~/.tmux.conf -# terminate tmux -bind-key C-q confirm-before -p "kill-window #W? (y/n)" kill-window -# maximize current pane -bind-key f resize-pane -Z # overwrites find window -# resolved key forwarding problem -set-window-option -g xterm-keys on -# had some struggle with vim key delay -set -s escape-time 0 -# mouse support -setw -g mouse on -# default TERM -set -g default-terminal "screen-256color" -# split settings -bind-key v split-window -h -bind-key s split-window -# move between splits -bind-key k select-pane -U -bind-key j select-pane -D -bind-key h select-pane -L -bind-key l select-pane -R -# Copy mode settings -set-window-option -g mode-keys vi -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-selection -bind-key C-v copy-mode -bind-key p paste-buffer # overwrites previous window - - -### Colour Settings - -# bash cmd to display colours -#for i in {0..255} ; do printf "\x1b[38;5;${i}mcolour${i}\n"; done - -# default statusbar colors -set-option -g status-bg colour235 -set-option -g status-fg colour136 -set-option -g status-attr default -# default window title colors -set-window-option -g window-status-fg colour244 -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 colour166 -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 colour235 -set-option -g pane-active-border-fg colour202 -# message text -set-option -g message-bg colour235 -set-option -g message-fg colour166 -# pane number display -set-option -g display-panes-active-colour colour33 -set-option -g display-panes-colour colour166 -# clock -#set-window-option -g clock-mode-colour colour62 - -set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M ' -#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 status-interval 5 diff --git a/bashrc b/bashrc index 3886ab7..242b6e3 100644 --- a/bashrc +++ b/bashrc @@ -1,7 +1,6 @@ # dotfiles -- bashrc # author: johannst - #{{{ general bash settings export TERM=xterm-256color @@ -38,6 +37,6 @@ export PS1="${BCol_DarkRed}::${BCol_DarkOrange}\u${BCol_DarkRed}::${BCol_LightOr #}}} #{{{ ls colors -export LS_COLORS='di=34:ln=96:or=4;96;41:so=0:pi=0:ex=01;92:bd=0;42:cd=0;42:su=0:sg=0:tw=30;44:ow=30;44' +export LS_COLORS='di=34:ln=96:or=96;41:so=0:pi=0:ex=01;92:bd=0;42:cd=0;42:su=0:sg=0:tw=30;44:ow=30;44' #}}} diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..6faa25f --- /dev/null +++ b/tmux.conf @@ -0,0 +1,73 @@ +### Basic Settings + +# default TERM +set -g default-terminal "xterm-256color" + +# re-map prefix key +set -g prefix C-s + +# terminate tmux +bind-key C-q confirm-before -p "kill tmux? (y/n)" kill-window + +# re-source tmux.conf +bind-key r source-file ~/.tmux.conf + +# mouse support +setw -g mouse on + +# resolved key forwarding problem +set-window-option -g xterm-keys on + +# had some struggle with vim key delay +set -s escape-time 0 + +# split settings +bind-key v split-window -h +bind-key s split-window + +# maximize current pane +bind-key f resize-pane -Z # overwrites find window + +# move between splits +bind-key k select-pane -U +bind-key j select-pane -D +bind-key h select-pane -L +bind-key l select-pane -R + +# Copy mode settings +set-window-option -g mode-keys vi +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-selection +bind-key C-v copy-mode +bind-key C-p paste-buffer + + +### Colour Settings + +# default statusbar colors +set-option -g status-bg colour235 +set-option -g status-fg colour208 + +# cmd line colors +set-option -g message-bg colour235 +set-option -g message-fg colour208 + +# non-active window title colors +set-window-option -g window-status-fg colour244 +set-window-option -g window-status-bg default + +# active window title colors +set-window-option -g window-status-current-fg colour255 +set-window-option -g window-status-current-bg colour208 + +# pane border +set-option -g pane-border-fg colour235 +set-option -g pane-active-border-fg colour208 + +# pane number display +set-option -g display-panes-active-colour colour208 +set-option -g display-panes-colour colour244 + +# right status bar +set -g status-right '#H #[fg=colour226,bg=colour239] %d/%m #[fg=colour226,bg=colour239] %H:%M ' +set -g status-right-length 50 -- cgit v1.2.3