diff options
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/.tmux.conf | 90 |
1 files changed, 28 insertions, 62 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index fadd29e..f2c781a 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf | |||
@@ -1,77 +1,43 @@ | |||
1 | set-option -g allow-rename off | 1 | set -g prefix C-a |
2 | 2 | unbind-key C-b | |
3 | # remap prefix from 'C-b' to 'C-a' | ||
4 | unbind C-b | ||
5 | set-option -g prefix C-a | ||
6 | bind-key C-a send-prefix | 3 | bind-key C-a send-prefix |
7 | 4 | ||
8 | # reload config file (change file location to your the tmux.conf you want to use) | 5 | # start with window 1 (instead of 0) |
9 | bind r source-file ~/.tmux.conf \; display-message "config reloaded!" | 6 | set -g base-index 1 |
10 | 7 | ||
11 | # switch panes using Alt-arrow without prefix | 8 | # start with pane 1 |
12 | bind -n M-Left select-pane -L | 9 | set -g pane-base-index 1 |
13 | bind -n M-Right select-pane -R | ||
14 | bind -n M-Up select-pane -U | ||
15 | bind -n M-Down select-pane -D | ||
16 | 10 | ||
17 | # also can use vim like movement hjkl pane traversal | 11 | # history |
18 | bind -n M-h select-pane -L | 12 | set -g history-limit 4096 |
19 | bind -n M-j select-pane -D | ||
20 | bind -n M-k select-pane -U | ||
21 | bind -n M-l select-pane -R | ||
22 | 13 | ||
23 | # in case want to use mouse | 14 | # mouse |
24 | set -g mouse on | 15 | set -g mouse on |
25 | 16 | ||
26 | #setw -g monitor-activity on | 17 | # allow terminal scrolling |
27 | #set -g visual-activity on | 18 | set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' |
28 | |||
29 | ###################### | ||
30 | ### DESIGN CHANGES ### | ||
31 | ###################### | ||
32 | 19 | ||
33 | ## Status bar design | 20 | # resizing |
34 | # status line | 21 | setw -g aggressive-resize on |
35 | set -g status-justify left | ||
36 | set -g status-bg default | ||
37 | set -g status-fg colour12 | ||
38 | set -g status-interval 2 | ||
39 | 22 | ||
40 | # window status | 23 | # window status |
41 | setw -g window-status-format " #F#I:#W#F " | 24 | set-option -g status-position bottom |
42 | setw -g window-status-current-format " #F#I:#W#F " | 25 | set -g status-bg default |
43 | setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W " | ||
44 | setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W " | ||
45 | |||
46 | # Info on left (I don't have a session display for now) | ||
47 | set -g status-left '' | ||
48 | |||
49 | # loud or quiet? | ||
50 | set-option -g visual-activity off | ||
51 | set-option -g visual-bell off | ||
52 | set-option -g visual-silence off | ||
53 | set-window-option -g monitor-activity off | ||
54 | set-option -g bell-action none | ||
55 | |||
56 | set -g default-terminal "screen-256color" | ||
57 | |||
58 | # The modes { | ||
59 | setw -g clock-mode-colour colour135 | ||
60 | 26 | ||
61 | # } | 27 | # info on right (no session display) |
62 | # The statusbar { | 28 | set-option -g status-right "" |
29 | set-option -g status-left "" | ||
63 | 30 | ||
64 | set -g status-position bottom | 31 | # toggle status bar visibility |
65 | set -g status-bg colour234 | 32 | bind t set status |
66 | set -g status-fg colour137 | ||
67 | #set -g status-left '#[fg=green]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --colors --powerline-right --interval 2)#[default]' | ||
68 | set -g status-left '' | ||
69 | set -g status-right '#[fg=colour233,bg=colour238] #{battery_icon} #{battery_percentage} #[fg=colour233,bg=colour241] online #{online_status} #[fg=colour233,bg=colour244] #{cpu_icon}#{cpu_percentage} #[fg=colour233,bg=colour247,bold] %a %d/%h #[fg=colour233,bg=colour250,bold] %H:%M:%S ' | ||
70 | set -g status-right-length 50 | ||
71 | set -g status-left-length 50 | ||
72 | 33 | ||
73 | set-option -g @cpu_icon "💪" | 34 | # navigate throught windows |
35 | bind-key -n S-Left previous-window | ||
36 | bind-key -n S-Right next-window | ||
74 | 37 | ||
75 | setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' | 38 | # colors |
39 | setw -g window-status-format "#[fg=colour8]#W " | ||
40 | setw -g window-status-current-format "#[fg=colour6]#W " | ||
41 | # set -g pane-border-fg colour0 | ||
42 | # set -g pane-active-border-fg colour0 | ||
76 | 43 | ||
77 | setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' | ||