dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

tmux.conf (1707B)


      1 set -g terminal-overrides ',xterm-256color:Tc'
      2 set -g default-terminal "tmux-256color"
      3 set -as terminal-overrides ',xterm*:sitm=\E[3m'
      4 set -g base-index 1
      5 set -g renumber-windows on
      6 set -g status-interval 60
      7 set -g status-right-length 100
      8 set -sg escape-time 0
      9 setw -g mode-keys vi
     10 set -g status-keys vi
     11 setw -g aggressive-resize on
     12 
     13 set -g status-justify "left"
     14 set -g status "on"
     15 set -g status-left-style "none"
     16 
     17 set -g status-right-length "100"
     18 set -g status-left-length "100"
     19 setw -g window-status-activity-style "none"
     20 
     21 set -g message-style bg=black,fg=green,bold
     22 set -g status-style bg=black,fg=yellow
     23 set -g window-status-current-style bold
     24 
     25 weather='#(curl -s "wttr.in/New York?format=%%l:+%%C+%%t+(%%f)")'
     26 
     27 set -g status-right-style "none"
     28 
     29 set -g set-titles on
     30 set -g set-titles-string "t[#S] #T"
     31 
     32 set -g status-left ""
     33 set -g status-right "$weather  %I:%M %p  #h "
     34 setw -g window-status-format " #W |"
     35 
     36 setw -g window-status-current-format " #W "
     37 
     38 set -g window-status-separator ""
     39 
     40 set-option -g prefix C-a
     41 unbind-key C-b
     42 bind-key C-a send-prefix
     43 
     44 bind -r H resize-pane -L 2
     45 bind -r J resize-pane -D 2
     46 bind -r K resize-pane -U 2
     47 bind -r L resize-pane -R 2
     48 bind -r h select-pane -L
     49 bind -r j select-pane -D
     50 bind -r k select-pane -U
     51 bind -r l select-pane -R
     52 
     53 bind-key x kill-pane
     54 bind-key & kill-window
     55 
     56 bind r source-file ~/etc/tmux/tmux.conf\; display-message "tmux configuration reloaded"
     57 
     58 bind -T copy-mode-vi 'y' send -X copy-pipe-and-cancel \
     59 	'xclip -i -selection clipboard'
     60 
     61 bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel \
     62 	'xclip -i -selection clipboard'
     63 
     64 bind -n MouseDown2Pane run \
     65 	'tmux set-buffer "$(xclip -o -selection clipboard)";tmux paste-buffer'