forked from Ornfelt1060/1060_dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
85 lines (68 loc) · 1.62 KB
/
.tmux.conf
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
# required for removing delay when pressing escape
set -sg escape-time 0
# scrollback size
set -g history-limit 10000
################################
# Keybinds
###############################
# Changing ctrl b to ctrl a as the command button
unbind C-b
set -g prefix C-a
# set first window to index 1 (not 0) to map more to the keyboard layout
#set -g base-index 1
#set -g pane-base-index 1
# reload tmux config with ctrl + a + r
unbind r
bind r \
source-file ~/.tmux.conf \;\
display 'Reloaded tmux config.'
# Ctrl a - t or t new window
unbind t
unbind C-t
bind-key t new-window
bind-key C-t new-window
# Ctrl a - q or q to kill panes
unbind q
unbind C-q
bind-key q kill-pane
bind-key C-q kill-pane
# Ctrl a - Q or Q to kill session
unbind Q
unbind C-Q
bind-key Q kill-session
bind-key C-Q kill-session
# Ctrl a - n : New session
unbind n
unbind C-n
bind-key n new-session
bind-key C-n new-session
# Copy from tmux to system clipboard
# Needs xclip -> sudo apt install xclip
#bind -t vi-copy y copy-pipe "xclip -sel clip -i"
set -g mouse on
#set mouse on
set-window-option -g mode-keys vi
#set-window-option mode-keys vi
#setw -g mode-keys vi
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
unbind enter
bind-key enter split-window -h
unbind s
bind-key s split-window
unbind l
bind-key l choose-tree
unbind L
bind-key L list-sessions
#set status-style "bg=cyan"
#set -g status-bg colour6
#set status-bg colour66
#set status-fg colour231
#set status-right '#H'
set -g status-bg colour66
set -g status-fg colour231
set -g status-right '#H'