-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
73 lines (56 loc) · 2.59 KB
/
Copy path.tmux.conf
File metadata and controls
73 lines (56 loc) · 2.59 KB
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
unbind C-b
set -g prefix C-space
bind C-space send-prefix
setw -gq utf8 on
# set-option -g default-terminal "xterm-256color"
# set -ga terminal-overrides ",xterm-256color:RGB"
set-option -g default-terminal "alacritty"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
set -g renumber-windows on
# zero is far away
set -g base-index 1
setw -g pane-base-index 1
bind h split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind-key j run-shell 'tmux-session-pop'
set -g mouse on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-urlview'
set -g @plugin 'tmux-plugins/tmux-battery'
bind Y resizep -U 1
bind D resizep -D 1
bind L resizep -L 1
bind R resizep -R 1
bind o source-file ~/.tmux.conf
bind e split-window -vb 'vi ~/.tmux.conf'
# The colors duke, the colors
BG_COLOR="#1a1b26"
LEFT_ARROW="#[fg=#1a1b26,bg=#1a1b26,nobold,nounderscore,noitalics]"
RIGHT_ARROW="#[fg=cyan,bg=#1a1b26,nobold,nounderscore,noitalics]"
set -g status 'on'
set -g status-position top
set -g status-justify left
set -g status-interval 1
set -g status-bg $BG_COLOR
set -g status-left-length '150'
set -g status-right-length '100'
set -g message-style fg='colour222',bg='colour238'
set -g message-command-style fg='colour222',bg='colour238'
set -g history-file ~/.history
# setw -g window-status-activity-style fg='colour154',bg='#1a1b26',none
setw -g window-status-separator ''
set -g status-left " 🐧 #[fg=#1a1b26,bg=cyan] #S #[bg=#1a1b26] "
set -g status-right "${LEFT_ARROW} #[fg=colour121,bg=#1a1b26] #(get-swin) ${LEFT_ARROW}#[fg=#1a1b26,bg=blue] %R #[fg=colour222,bg=colour238] 🔋#{battery_percentage} #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour154]"
setw -g window-status-format "#[fg=#1a1b26,bg=cyan,nobold,nounderscore,noitalics]#[fg=#1a1b26,bg=cyan] #I #W ${RIGHT_ARROW}"
setw -g window-status-current-format '#[fg=#1a1b26,bg=magenta,nobold,nounderscore,noitalics]#[fg=#1a1b26,bg=magenta] #I #W #[fg=magenta,bg=#1a1b26,nobold,nounderscore,noitalics]'
# set -g "window-style" "bg=default"
# set -g "window-active-style" "bg=default"
# set -g window-style 'fg=colour247,bg=#212b3b'
set -g window-style 'fg=colour247,bg=#212b3b'
set -g window-active-style 'fg=colour250,bg=#1a1b26'
run -b '~/.tmux/plugins/tpm/tpm'