]> git.friedersdorff.com Git - max/dotfiles.git/blob - tmux/.tmux.conf
Add slight gaps between windows
[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-attr bold
65 setw -g mode-fg colour7
66 setw -g mode-bg colour8
67
68 # panes
69 set -g pane-border-bg colour8
70 set -g pane-border-fg colour0
71 set -g pane-active-border-bg colour0
72 set -g pane-active-border-fg colour7
73
74 # statusbar
75 set -g status-position bottom
76 set -g status-justify left
77 set -g status-bg colour0
78 set -g status-fg colour137
79 set -g status-attr dim
80 set -g status-left ''
81 set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
82 set -g status-right-length 50
83 set -g status-left-length 20
84
85 setw -g window-status-current-fg colour3
86 setw -g window-status-current-bg colour8
87 setw -g window-status-current-attr bold
88 setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
89
90 setw -g window-status-fg colour8
91 setw -g window-status-bg colour7
92 setw -g window-status-attr none
93 setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
94
95 setw -g window-status-bell-attr bold
96 setw -g window-status-bell-fg colour255
97 setw -g window-status-bell-bg colour1
98
99 # messages
100 set -g message-attr bold
101 set -g message-fg colour3
102 set -g message-bg colour0