added some corrections to bin/statusbar; the xterm font size is
[home.git] / .tmux.conf
blob9e21e5f5f1c66678d0f0e068300d86cd4f0bf0d3
1 # $Id: .tmux.conf,v 1.2 2016/11/30 14:38:54 fste Exp $
3 # tmux - terminal multiplexer configuration file
6 # change the prefix
7 set-option -g prefix `
8 unbind-key C-b
9 bind-key ` send-prefix
11 #set-option -ga terminal-overrides ",xterm-256color:Tc"
13 # set the shell
14 set-option -g default-command "exec /bin/ksh"
16 # define the default terminal
17 set-option -g default-terminal "screen-256color"
19 # set scrollback history
20 set-option -g history-limit 4096
22 # allow terminal scrolling
23 set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
25 # fix split pane line draw
26 set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'
28 # reload tmux configuration
29 bind r source-file ~/.tmux.conf \; display "Reloaded!"
31 # vim style copy paste mode
32 unbind [
33 bind Escape copy-mode
34 unbind p
35 bind p paste-buffer
36 bind-key -t vi-copy 'v' begin-selection
37 #bind-key -t vi-copy y copy-pipe 'xclip -in -selection clipboard'
38 bind-key -t vi-copy 'y' copy-selection
40 # use vi mode
41 setw -g mode-keys vi
42 set-option -g status-keys vi
44 # split windows horizontally
45 bind | split-window -h
47 # split windows vertically 
48 bind - split-window -v
50 # pane movement keys like Vi
51 bind h select-pane -L
52 bind j select-pane -D
53 bind k select-pane -U
54 bind l select-pane -R
56 # panes
57 set-option -g pane-border-fg black
58 set-option -g pane-active-border-fg red
60 # statusline
61 set-option -g status-justify left
62 set-option -g status-style "bg=#000000,fg=#515f6a"
63 set-option -g status-interval 5
65 # status-left
66 set-option -g status-left-length 10
67 set-option -g status-left "[#S]"
69 set -g status-right-length 100
70 set -g status-right "#(tmuxbar.sh)"
72 # windows options
73 set-window-option -g window-status-format ' #I:#W#F'
74 set-window-option -g window-status-current-format '[#[fg=#a7a7a7]#I:#W#F#[default]]'
76 # toggle status bar
77 bind-key t set status