]> git.friedersdorff.com Git - max/dotfiles.git/blob - tmux/.tmux.conf
Merge branch 'master' of git.friedersdorff.com:max/dotfiles
[max/dotfiles.git] / tmux / .tmux.conf
1 # Set vi mode
2 set -g mode-keys vi
3 set -g history-limit 10000
4
5
6 set -g default-command /bin/bash
7
8 unbind C-b 
9 set -g prefix C-a 
10 bind C-a send-prefix
11
12 set -g default-terminal "screen-256color"
13
14 set -s escape-time 0
15
16 # Options from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
17 # Better switching
18 bind | split-window -h
19 bind - split-window -v
20 unbind '"'
21 unbind %
22
23 # Easier pane switching
24 bind -n M-k select-pane -U
25 bind -n M-j select-pane -D
26 bind -n M-h select-pane -L
27 bind -n M-l select-pane -R
28
29 # Easy reloading of config
30 bind r source-file ~/.tmux.conf
31
32 # Mouse bindings. THIS IS AWESOME!
33 set -g mouse on
34
35 # Dont rename windows (allows setting mail for instance)
36 set -g allow-rename off
37
38 ## move x clipboard into tmux buffer
39 #bind C-p run "tmux set-buffer \"$(xclip -o)\""
40 ## move tmux copy buffer into x clipboard
41 #bind C-y run "tmux save-buffer - | xclip -i"
42
43 #move wayland clipbord into tmux buffer
44 bind C-p run "tmux set-buffer \"$(wl-paste)\""
45 # move tmux copy buffer into wayland clipboard
46 bind C-y run "tmux save-buffer - | wl-copy"
47
48
49
50 ####################################
51 # DESING ###########################
52 # By /u/dothebarbwa on /r/unixporn #
53 ####################################
54
55 # loud or quiet?
56 set-option -g visual-activity off
57 set-option -g visual-bell off
58 set-option -g visual-silence off
59 set-window-option -g monitor-activity off
60 set-option -g bell-action none
61
62 #  modes
63 setw -g clock-mode-colour colour5
64 setw -g mode-style bold,fg=colour7,bg=colour8
65
66 # panes
67 set -g pane-border-style bg=colour8,fg=colour0
68 set -g pane-active-border-style bg=colour0,fg=colour7
69
70 # statusbar
71 set -g status-position bottom
72 set -g status-justify left
73 set -g status-style bg=colour0,fg=colour137,dim
74 set -g status-left ''
75 set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
76 set -g status-right-length 50
77 set -g status-left-length 20
78
79 setw -g window-status-current-style fg=colour3,bg=colour8,bold
80 setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
81
82 setw -g window-status-style fg=colour8,bg=colour7,none
83 setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
84
85 setw -g window-status-bell-style fg=colour255,bg=colour1,bold
86
87 # messages
88 set -g message-style fg=colour3,bg=colour0,bold