~koehr/configs

configs/dot.tmux.conf -rw-r--r-- 2.6 KiB
d108c455 — koehr update README 2 months ago
                                                                                
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
set -g default-terminal "st-256color"
set -ga terminal-overrides ",st-256color:Tc"
set -g escape-time 0
set -g mouse on

unbind C-b
unbind C-a
unbind Space
unbind C-Space
unbind r
unbind Tab

set -g prefix C-a
bind C-a send-prefix

bind-key C-a last-window
bind-key Space next-window
bind-key C-Space previous-window

bind-key Tab select-pane -t :.+ \; swap-pane -U

bind r source-file ~/.tmux.conf

# set inactive/active window styles
set -g window-style 'fg=colour247,bg=colour233'
set -g window-active-style 'fg=colour244,bg=colour234'

set-window-option -g xterm-keys on
# allow set-titles to change the window title under st
# http://opennomad.com/content/goodbye-screen-hello-tmux
# http://stackoverflow.com/questions/15195624
set-option -ga terminal-overrides ',st-256color:smkx=\E='


# status bar
set -g status-style fg=colour208,bg=colour237
# set-option -g status-attr default
set-option -g status-position bottom
set-option -g status-interval 60
set-option -g status-bg default
set-option -g status-fg white

# Left side of status bar
set-option -g status-left-length 10
#set-option -g status-left "#[fg=brightwhite,bg=colour234] #S #[fg=default,bg=default] "
set-option -g status-left '#{?client_prefix,#[bg=colour62]   ,#[bg=colour234] #S }#[fg=default,bg=default] '

# Window status
set-option -g window-status-format "#[fg=white,bg=colour234] #I #[fg=white,bg=colour234] #W "
set-option -g window-status-current-format "#[fg=brightwhite,bg=colour62] #I #[fg=brightwhite,bg=colour234] #W "
set-option -g window-status-separator " "
set-option -g status-justify left

# Right side of status bar
set-option -g status-right-length 80
WEATHER='#(curl -s wttr.in/Berlin\?format\="%%t+%%C+%%w+%%m")'
set-option -g status-right "#[fg=brightwhite,bg=colour62]🌡 BER #[fg=brightwhite,bg=colour234] $WEATHER #[fg=brightwhite,bg=colour62]   #[fg=brightwhite,bg=colour234] #(whoami)@#h "

# pane border
set -g pane-border-style fg=colour238,bg=colour235
set -g pane-active-border-style fg=colour62,bg=colour236

# Pane number indicator
set-option -g display-panes-colour colour234
set-option -g display-panes-active-colour brightwhite

# Clock mode
# set-option -g clock-mode-colour white
# set-option -g clock-mode-style 24

# Message
set -g message-style fg=default,bg=default

# Activity
set-option -g monitor-activity on
set-option -g monitor-silence 0
set-option -g monitor-bell on
set-option -g activity-action other
set-option -g visual-activity on

# Window numbering
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g renumber-windows on

# select default layout
set-option -g main-pane-width 65
set-option -g main-pane-height 65
bind Enter select-layout main-vertical