summaryrefslogtreecommitdiff
path: root/.tmux.conf
blob: 888a68efd714584415b27dfd3ed9fe516f7f358b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
set -g default-command "reattach.sh"
set -g default-terminal "screen-256color"

#set -g history-limit 10000

# Resize to the smallest client actively looking at a screen
# https://mutelight.org/practical-tmux
set -g aggressive-resize on

# Default to emacs because that's everyone else's default
# tmux chooses vim keys because my EDITOR is vim
set -g mode-keys emacs

# Don't allow applications to rename windows once we name them ourselves.
set -g allow-rename off

# Key bindings
bind k clear-history
bind . set status off
bind > set status on

# Top is often better for huge hi-dpi screens
bind M-\\ set status-position bottom # ???
bind M-| set status-position top

set -g status-interval 10
set -g status-justify centre
set -g status-style fg=default
set -g message-style fg=default,bg=default

set-window-option -g window-status-current-style bg=default,fg=colour199,none

# White on Black
set -g status-bg colour234
bind | set -g status-bg colour234

# Black on White
bind \\ set -g status-bg colour255

set -g status-left-length 100
set -g status-right-length 100
set -g status-left "#[fg=green][#[fg=cyan]#{host_short}#[fg=green]]"
set -g status-right "#(~/bin/irssi-unread-count.sh)#(~/bin/mail-unread-count.py)#[fg=green][#[fg=magenta]#(~/bin/tmux-load-avg.py)#[fg=green]][#[fg=cyan]%d %b %H:%M#[fg=green]]"