-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
123 lines (90 loc) · 3.28 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
########################################################################
########################################################################
## ##
## Collected from : ##
## https://github.com/tony/tmux-config/blob/master/.tmux.conf ##
## https://gist.github.com/spicycode/1229612 ##
## https://github.com/MohamedBassem/dotfiles/blob/master/.tmux.conf ##
## https://github.com/AhmedZaleh/dotfiles/blob/master/tmux.conf ##
## ##
## with some customizations for my experience ##
## ##
########################################################################
########################################################################
###################
## Configuration ##
###################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# set pane splitting
bind-key v split-window -h -c '#{pane_current_path}'
bind-key h split-window -c '#{pane_current_path}'
# set new window
bind c new-window -c '#{pane_current_path}'
# re-number windows when one is closed
set -g renumber-windows on
# status bar refresh rate (default=15)
set -g status-interval 5
##################
## Key Bindings ##
##################
# Force reload the config file
unbind r
bind r source-file ~/.tmux.conf \; display-message "configuration reloaded !"
# Using Ctrl-a for commands
unbind C-b
set-option -g prefix C-a
bind-key C-a last-window
# Using Ctrl to jump between words
set-window-option -g xterm-keys on
unbind-key -n C-Left
unbind-key -n C-Right
# Enabling mouse
set -g mouse on
# Allows for faster key repetition
set -s escape-time 0
# Alt-arrow for navigation between panes
bind -n M-Left select-pane -L
bind -n M-Down select-pane -D
bind -n M-Up select-pane -U
bind -n M-Right select-pane -R
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
############
## Colors ##
############
# status bar colors
set -g status-bg default
set -g status-fg "#080808"
# non-active windows
set -g window-status-style fg="#00005f",bg="#626262",dim
# highlight current window
set-window-option -g window-status-current-style fg="#00005f",bg="#87d7ff",bright
# pane border and colors
set -g pane-active-border-style bg="default",fg="#5fff5f"
set -g pane-border-style bg="default",fg="#373b41"
# pane border color
set-option -g pane-border-style fg="#3a3a3a"
set-option -g pane-active-border-style fg="#005f00"
# message text
set-option -g message-style bg="#262626",fg="#00d7ff"
# clock mode
set -g clock-mode-style 12
set -g status-justify left
set -g status-left "[#h]"
set -g status-left-style bg="default",bright
set -g status-left-length 50
set -g status-right "%d %b %l:%M %p"
set -g status-right-style fg="#00d7ff",bright
###############
## Powerline ##
###############
run-shell "powerline-daemon -q"
source "$HOME/.local/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf"