~laxis/dotfiles

ref: c84a45fe529f2dd081d3da35e3e540d10ff16151 dotfiles/.tmux.conf -rw-r--r-- 2.0 KiB
c84a45feLars Brix i3: reassign workspaces to outputs 5 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
set -g aggressive-resize on
set -g mouse on
set -g status-keys vi
set -g history-limit 10000
set -sg escape-time 0
setw -g mode-keys vi
set -g monitor-activity off
set -g visual-activity off
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"

set -g base-index 1           # start windows numbering at 1
setw -g pane-base-index 1     # make pane numbering consistent with windows
set -g renumber-windows on    # renumber windows on close

setw -g automatic-rename on   # rename window to reflect current program
set -g renumber-windows on    # renumber windows when a window is closed

set -g set-titles on          # set terminal title

set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000      # slightly longer status messages display time

set -g status-interval 10 # redraw status line every 10 seconds



#bind <leader> to C-a (easier to type)
unbind C-b
set -g prefix C-a

# better copy
bind C-b copy-mode -u

# <leader> v/s to split
bind-key v split-window -h
bind-key s split-window -v
# <leader> hjkl to switch panes 
bind h select-pane -L
bind j select-pane -D 
bind k select-pane -U
bind l select-pane -R
# <leader> arrow keys to resize
bind-key Down resize-pane -D 5
bind-key Up resize-pane -U 5
bind-key Left resize-pane -L 5
bind-key Right resize-pane -R 5
# <leader> r to reload config
bind r source-file ~/.tmux.conf \; display 'reloaded tmux config'
# window management
bind , command-prompt -p "(rename-window '#W')" "rename-window '%%'"
bind '$' command-prompt -p "(rename-session '#S')" "rename-session '%%'"

# C-q to kill session
unbind C-q
bind-key C-q kill-session
# other stuff
bind C-x kill-pane

# THEME
set -g window-status-format '#I #W '
set -g status-style bg=default,fg=white
set -g window-status-current-style bg=default,fg=yellow
set -g window-status-current-format '#I #W '
set -g status-left '#{?window_zoomed_flag,#[fg=red bg=default]zoomed#[default] ,}'
set -g status-right-length 50
set -g status-right '%Y-%m-%d %H:%M:%S '