]> git.sthu.org Git - shutils.git/blob - dotfiles/tmux/.tmux.conf
systemd: Add vidirsyncer unit and timer files
[shutils.git] / dotfiles / tmux / .tmux.conf
1 # Prefer xterm-256color as vim (neovim) within mutt switches to monochrome with
2 # screen-256color.
3 set -g default-terminal "xterm-256color"
4 #set -g mouse on
5
6 set-window-option -g xterm-keys on
7
8 # Pass escape immediately to vim
9 set -sg escape-time 0
10
11 # Copy to X11 clipboard
12 bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
13
14 bind-key m set-option -g mouse on \; display 'Mouse: ON'
15 bind-key M set-option -g mouse off \; display 'Mouse: OFF'
16
17 # Pass titles to terminal
18 set-option -g set-titles on
19 set-option -g set-titles-string "[#S : #W : #T]"
20
21
22 # {{{{ Gruvbox color scheme
23 # https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf
24
25 ## COLORSCHEME: gruvbox dark
26 set-option -g status "on"
27
28 # default statusbar color
29 set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1
30
31 # default window title colors
32 set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1
33
34 # default window with an activity alert
35 set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3
36
37 # active window title colors
38 set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1
39
40 # pane border
41 set-option -g pane-active-border-style fg=colour250 #fg2
42 set-option -g pane-border-style fg=colour237 #bg1
43
44 # message infos
45 set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1
46
47 # writing commands inactive
48 set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1
49
50 # pane number display
51 set-option -g display-panes-active-colour colour250 #fg2
52 set-option -g display-panes-colour colour237 #bg1
53
54 # clock
55 set-window-option -g clock-mode-colour colour109 #blue
56
57 # bell
58 set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg
59
60 ## Theme settings mixed with colors (unfortunately, but there is no cleaner way)
61 set-option -g status-justify "left"
62 set-option -g status-left-style none
63 set-option -g status-left-length "80"
64 set-option -g status-right-style none
65 set-option -g status-right-length "80"
66 set-window-option -g window-status-separator ""
67
68 set-option -g status-left "#[fg=colour248, bg=colour241] #S: #T #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]"
69 set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics]#[fg=colour246,bg=colour239] %Y-%m-%d  %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h "
70
71 set-window-option -g window-status-current-format "#[fg=colour237, bg=colour214, nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]"
72 set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]"