Skip to content

Commit cbec8a8

Browse files
author
source-c
committed
update tmux.conf
1 parent 706c2c2 commit cbec8a8

File tree

1 file changed

+65
-31
lines changed

1 file changed

+65
-31
lines changed

.tmux/tmux.conf

Lines changed: 65 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,78 @@
11
set -g default-terminal screen
2-
2+
set -g status-left "#[fg=white,bold]#(network-status) #[fg=brightblack][#8S]#[default]"
3+
set-window-option -g window-status-format '#[fg=yellow]#I#[fg=magenta]:#[default]#W#[fg=grey,dim]#F'
4+
set-window-option -g window-status-current-format '#[bg=green,fg=yellow,bold]#I#[bg=green,fg=magenta]:#[fg=white]#W#[fg=dim]#F'
5+
set -g status-right '#[fg=yellow](#[fg=brightmagenta]#{=64:pane_title}#[fg=yellow]) [#[fg=brightgreen]%d-%m-%y #[fg=white]%H:%M#[default]#[fg=yellow]] #[fg=green,bold]#(battery-status)%%'
6+
set -g status-bg black
7+
set -g status-fg brightgreen
8+
set-window-option -g window-status-current-bg brightgreen
9+
set-window-option -g window-status-current-fg black
10+
set -g clock-mode-colour green
11+
setw -g window-status-bell-fg magenta
12+
setw -g window-status-bell-bg black
13+
setw -g window-status-activity-fg blue
14+
setw -g window-status-activity-bg black
15+
set -g pane-border-fg brightblack
16+
set -g pane-border-bg black
17+
set -g pane-active-border-bg black
18+
set -g pane-active-border-fg yellow
19+
#---------------------------------
20+
set -g status-right-length 100
21+
set -g display-time 3000
22+
set-option -g lock-command vlock
23+
unbind-key l
24+
bind-key l lock-server
25+
bind-key b last-window
326
set -g history-limit 4096
4-
5-
# Set window notifications
27+
bind-key -r ` command-prompt "run-shell '%%'"
28+
set -g status-left "#[fg=white,bold]#(network-status) #[fg=brightblack][#S] #[default]"
29+
set -g status-left-length 14
30+
set -g status-interval 10
31+
set -g lock-after-time 900
632
set -g bell-action any
7-
33+
bind z setw monitor-activity on
34+
bind Z setw monitor-activity off
835
bind-key -r J resize-pane -D 5
936
bind-key -r K resize-pane -U 5
1037
bind-key -r H resize-pane -L 5
1138
bind-key -r L resize-pane -R 5
12-
39+
bind-key -r M-_ resize-pane -D
40+
bind-key -r M-+ resize-pane -U
41+
bind-key -r M-< resize-pane -L
42+
bind-key -r M-> resize-pane -R
1343
bind-key \ split-window
1444
bind-key | split-window -h
15-
16-
bind-key -r ` command-prompt "run-shell '%%'"
17-
18-
# Toggle mouse on with ^B m
45+
bind-key ! break-pane
46+
bind-key '"' command-prompt "join-pane -h -p 50 -s '%%'"
47+
bind-key @ command-prompt "join-pane -v -p 50 -s '%%'"
48+
bind V source-file ~/.tmux/video.layout
49+
bind S source-file ~/.tmux/devel.layout
50+
bind M source-file ~/.tmux/media.layout
51+
bind P source-file ~/.tmux/monit.layout
52+
bind Q kill-pane -a
1953
bind m \
20-
set -g mode-mouse on \;\
21-
set -g mouse-resize-pane on \;\
22-
set -g mouse-select-pane on \;\
23-
set -g mouse-select-window on \;\
24-
display 'Mouse is ON'
25-
26-
# Toggle mouse off with ^B Meta+m
54+
set -g mouse on \;\
55+
set -g mouse-utf8 on \;\
56+
display 'Mouse: ON'
2757
bind M-m \
28-
set -g mode-mouse off \;\
29-
set -g mouse-resize-pane off \;\
30-
set -g mouse-select-pane off \;\
31-
set -g mouse-select-window off \;\
32-
display 'Mouse is OFF'
33-
34-
# pass through xterm keys
58+
set -g mouse-utf8 off \;\
59+
set -g mouse off \;\
60+
display 'Mouse: OFF'
3561
set -g xterm-keys on
36-
37-
bind-key -n C-M-left prev
38-
bind-key -n C-M-right next
39-
40-
# Set a space-separated string containing a list of environment
41-
# variables to be copied into the session environment when a new
42-
# session is created or an existing session is attached
62+
bind -n C-F1 list-keys
63+
bind R source-file ~/.tmux.conf \; display "TmuX config file reloaded."
64+
bind-key -n M-C-left prev
65+
bind-key -n M-C-right next
66+
bind -t emacs-copy 'C-Space' begin-selection
67+
bind -t emacs-copy 'Enter' copy-selection
68+
bind-key C-p pipe-pane -o 'cat >>~/.tmux/output.#I-#P' \;\
69+
display 'Pine piped info ~/.tmux/output.#I-#P'
70+
bind-key C-M-p pipe-pane \;\
71+
display 'Pipe closed'
72+
bind k confirm-before -p "kill-session #P? (y/n)" kill-session
73+
bind N new
4374
set -g update-environment "DISPLAY WINDOWID SSH_CONNECTION SSH_CLIENT SSH_TTY XDG_SESSION_COOKIE TERM HUSHLOGIN"
44-
75+
set -g status-position top
76+
bind-key -r Enter resize-pan -Z
77+
bind-key -r I set -g synchronize-panes on
78+
bind-key -r M-i set -g synchronize-panes off

0 commit comments

Comments
 (0)