summaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-01-19 18:05:15 +0000
committerShubham Saini <shubham6405@gmail.com>2020-01-19 18:05:15 +0000
commit411224e352688ae7fab0e2c138a8a55abde5403b (patch)
tree72e0eefed325a2ba2f6331e49eaaa62fa96756f4 /tmux
parentf235226bf5ba825c984effbb8145787fa4756214 (diff)
added tmux
Diffstat (limited to 'tmux')
-rw-r--r--tmux/.tmux.conf77
1 files changed, 77 insertions, 0 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
new file mode 100644
index 0000000..fadd29e
--- /dev/null
+++ b/tmux/.tmux.conf
@@ -0,0 +1,77 @@
1set-option -g allow-rename off
2
3# remap prefix from 'C-b' to 'C-a'
4unbind C-b
5set-option -g prefix C-a
6bind-key C-a send-prefix
7
8# reload config file (change file location to your the tmux.conf you want to use)
9bind r source-file ~/.tmux.conf \; display-message "config reloaded!"
10
11# switch panes using Alt-arrow without prefix
12bind -n M-Left select-pane -L
13bind -n M-Right select-pane -R
14bind -n M-Up select-pane -U
15bind -n M-Down select-pane -D
16
17# also can use vim like movement hjkl pane traversal
18bind -n M-h select-pane -L
19bind -n M-j select-pane -D
20bind -n M-k select-pane -U
21bind -n M-l select-pane -R
22
23# in case want to use mouse
24set -g mouse on
25
26#setw -g monitor-activity on
27#set -g visual-activity on
28
29######################
30### DESIGN CHANGES ###
31######################
32
33## Status bar design
34# status line
35set -g status-justify left
36set -g status-bg default
37set -g status-fg colour12
38set -g status-interval 2
39
40# window status
41setw -g window-status-format " #F#I:#W#F "
42setw -g window-status-current-format " #F#I:#W#F "
43setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
44setw -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)
47set -g status-left ''
48
49# loud or quiet?
50set-option -g visual-activity off
51set-option -g visual-bell off
52set-option -g visual-silence off
53set-window-option -g monitor-activity off
54set-option -g bell-action none
55
56set -g default-terminal "screen-256color"
57
58# The modes {
59setw -g clock-mode-colour colour135
60
61# }
62# The statusbar {
63
64set -g status-position bottom
65set -g status-bg colour234
66set -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]'
68set -g status-left ''
69set -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 '
70set -g status-right-length 50
71set -g status-left-length 50
72
73set-option -g @cpu_icon "💪"
74
75setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
76
77setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '