-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
99 lines (76 loc) · 2.6 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
# vim:fdm=marker
# Basic settings {{{1
# Start window numbering at 1
set-option -g base-index 1
set-window-option -g pane-base-index 1
# Enable mouse mode
set -g mouse on
set -s set-clipboard off
# Remove delay time on escape, especially in vim
set -sg escape-time 0
# Keymappings {{{1
# Rebind prefix key
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Rebind split creation
bind '\' split-window -h -c '#{pane_current_path}'
bind '/' split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# Reload tmux.conf
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode-vi v send-keys -X begin-selection
# Search back to last prompt (mnemonic: "[b]ack"); searches for non-breaking
# space in prompt.
bind-key b copy-mode\; send-keys -X start-of-line\; send-keys -X search-backward "▶"
# Don't send SIGSTOP to tmux
unbind C-z
# Color scheme {{{1
## Status bar design
# status line
# set -g status-utf8 on
set -g status-justify left
set -g status-style bg=default
set -g status-style fg=colour12
set -g status-interval 1
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
set -g default-terminal "tmux-256color"
set -sg terminal-overrides ",*:RGB"
# The modes {
setw -g clock-mode-colour colour12
# }
# The panes {
set -g pane-border-style fg=colour238
set -g pane-active-border-style fg=colour51
# }
# The statusbar {
set -g status-position bottom
set -g status-style fg=colour137,bg=colour234,dim
set -g status-left ''
set -g status-right '#[fg=colour233,bg=colour241,bold]#{spotify_playback} #{spotify_artist}: #{spotify_song} #[fg=colour233,bg=colour245,bold] %d/%m #[fg=colour233,bg=colour248,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
setw -g window-status-current-style fg=colour81,bg=colour238,bold
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style fg=colour138,bg=colour235,none
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# }
# The messages {
set -g message-style fg=colour232,bg=colour166,bold
# }
# Plugins {{{1
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'flip1995/tmux-plugin-spotify'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @spotify_song_length 15
set -g @spotify_artist_length 10
set -g @spotify_client "spotifyd"
run '~/.tmux/plugins/tpm/tpm'