]> git.friedersdorff.com Git - max/dotfiles.git/blob - tmux/.tmux.conf
Force xwayland on qutebrowser
[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
44
45 ####################################
46 # DESING ###########################
47 # By /u/dothebarbwa on /r/unixporn #
48 ####################################
49
50 # loud or quiet?
51 set-option -g visual-activity off
52 set-option -g visual-bell off
53 set-option -g visual-silence off
54 set-window-option -g monitor-activity off
55 set-option -g bell-action none
56
57 #  modes
58 setw -g clock-mode-colour colour5
59 setw -g mode-attr bold
60 setw -g mode-fg colour7
61 setw -g mode-bg colour8
62
63 # panes
64 set -g pane-border-bg colour8
65 set -g pane-border-fg colour0
66 set -g pane-active-border-bg colour0
67 set -g pane-active-border-fg colour7
68
69 # statusbar
70 set -g status-position bottom
71 set -g status-justify left
72 set -g status-bg colour0
73 set -g status-fg colour137
74 set -g status-attr dim
75 set -g status-left ''
76 set -g status-right '#[fg=colour233,bg=colour8,bold] %d/%m #[fg=colour233,bg=colour7,bold] %H:%M:%S '
77 set -g status-right-length 50
78 set -g status-left-length 20
79
80 setw -g window-status-current-fg colour3
81 setw -g window-status-current-bg colour8
82 setw -g window-status-current-attr bold
83 setw -g window-status-current-format ' #I#[fg=colour3]:#[fg=colour7]#W#[fg=colour249]#F '
84
85 setw -g window-status-fg colour8
86 setw -g window-status-bg colour7
87 setw -g window-status-attr none
88 setw -g window-status-format ' #I#[fg=colour8]:#[fg=colour8]#W#[fg=colour8]#F '
89
90 setw -g window-status-bell-attr bold
91 setw -g window-status-bell-fg colour255
92 setw -g window-status-bell-bg colour1
93
94 # messages
95 set -g message-attr bold
96 set -g message-fg colour3
97 set -g message-bg colour0