diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-04-14 23:24:58 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-04-15 00:11:54 +0200 |
| commit | a9d538a03d6098e97ede79c5c306eae5664c2d24 (patch) | |
| tree | 0a4ae586ccf0f20d729d20a160ceb979a2b43d53 | |
| parent | d9a0600aa03346bcf5bf9698404ab338bef2693f (diff) | |
| download | dotfiles-a9d538a03d6098e97ede79c5c306eae5664c2d24.tar.gz dotfiles-a9d538a03d6098e97ede79c5c306eae5664c2d24.zip | |
tmux: updated config
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | tmux.conf | 82 |
1 files changed, 55 insertions, 27 deletions
@@ -22,6 +22,26 @@ unbind "'" unbind w # +# vi +# + +# vi status keys +set-window-option -g mode-keys vi +set-option -g status-keys vi + +# copy & paste like vim +unbind [ +bind Escape copy-mode +unbind p +bind p paste-buffer +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-selection + + +# move tmux copy buffer into x clipboard +bind-key C-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xclip" + +# # manage windows # bind-key n new-window @@ -48,45 +68,53 @@ bind -n M-S-Left resize-pane -L bind -n M-S-Right resize-pane -R # +# window title +# +set-window-option -g utf8 on +set-window-option -g automatic-rename on +set-option -g set-titles on +set-option -g set-titles-string '#S:#I.#P #W' # window number,program name,active (or not) + +# # misc # set -g history-limit 1500 set -g default-terminal "screen-256color" set -g bell-action none -set-window-option -g utf8 on - -set-window-option -g automatic-rename on -set-option -g set-titles on setw -g monitor-activity on set -g base-index 1 setw -g pane-base-index 1 # -# ui +# ui: shamelessly taken from: https://github.com/magarcia/dotfiles # -set -g status-fg white -set -g status-bg "#283137" - -set-window-option -g status-left " #S " -set-window-option -g status-left-fg white -set-window-option -g status-left-bg "#283137" - -set-window-option -g status-right " %H:%M %d-%b-%y " -set-window-option -g status-right-fg white -set-window-option -g status-right-bg "#283137" - -# active window -set-window-option -g window-status-format "#I: #W" -set-window-option -g window-status-current-fg white -set-window-option -g window-status-current-bg black - -# non-active -setw -g window-status-fg "#888879" -setw -g window-status-bg "#283137" - -set -g pane-border-fg magenta -set -g pane-active-border-fg white +set -g status-bg "colour0" +set -g message-command-fg "colour15" +set -g status-justify "left" +set -g status-left-length "100" +set -g status "on" +set -g pane-active-border-fg "colour10" +set -g message-bg "colour8" +set -g status-right-length "100" +set -g status-right-attr "none" +set -g message-fg "colour15" +set -g message-command-bg "colour8" +set -g status-attr "none" +set -g status-utf8 "on" +set -g pane-border-fg "colour8" +set -g status-left-attr "none" +setw -g window-status-fg "colour7" +setw -g window-status-attr "none" +setw -g window-status-activity-bg "colour0" +setw -g window-status-activity-attr "none" +setw -g window-status-activity-fg "colour10" +setw -g window-status-separator "" +setw -g window-status-bg "colour0" +set -g status-left "#[fg=colour234,bg=colour10] #S #[fg=colour10,bg=colour0,nobold,nounderscore,noitalics]▓▒░" +set -g status-right "#[fg=colour7,bg=colour0,nobold,nounderscore,noitalics]░▒▓#[fg=colour234,bg=colour7] %Y-%m-%d | %H:%M #[fg=colour7,bg=colour7,nobold,nounderscore,noitalics]░▒▓#[fg=colour234,bg=colour7] #h " +setw -g window-status-format "#[fg=colour7,bg=colour0] #I |#[fg=colour7,bg=colour0] #W " +setw -g window-status-current-format "#[fg=colour0,bg=colour8,nobold,nounderscore,noitalics]▓▒░#[fg=colour15,bg=colour8] #I |#[fg=colour15,bg=colour8] #W #[fg=colour8,bg=colour0,nobold,nounderscore,noitalics]▓▒░" # coping inside tmux bind c copy-mode |
