-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
66 lines (57 loc) · 3.15 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Key bindings
set -g prefix C-z
unbind C-b
bind C-z send-prefix
# set -g mouse off
set -g pane-base-index 1
set -g renumber-windows on
setw -g allow-rename off
setw -g automatic-rename off
setw -g mode-keys vi
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
#set -g @plugin 'tmux-plugins/tmux-cpu'
#set -g @plugin 'tmux-plugins/tmux-battery'
# set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'tmux-plugins/tmux-online-status
set -g @plugin 'tmux-plugins/tmux-sidebar'
#set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'dracula/tmux'
# Plugins configuration
#set -g status-right '📌#{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}🕖%a %m/%d %H:%M'
# set -g status-right '🔖#{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}🕖%a %m/%d %H:%M'
# set -g status-right '#️⃣ #{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}🕖%a %m/%d %H:%M'
# set -g status-right '🏷️ #{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}🕖%a %m/%d %H:%M'
# set -g status-right '⌨️ #{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}🕖%a %m/%d %H:%M'
# set -g status-right '📝#{prefix_highlight}🔋#{battery_percentage}💻#{cpu_percentage}📅%a %m/%d🕖%H:%M'
# set -g status-right '#{prefix_highlight} #H | %a %Y-%m-%d %H:%M'
#set -g @colors-solarized 'dark'
# dracula configuration
set -g @dracula-show-battery true
set -g @dracula-show-network true
set -g @dracula-show-weather true
set -g @dracula-show-fahrenheit true
set -g @dracula-show-powerline true
# Copy settings
# =================Awesome codes,holy shit!===================================================================================================================
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up
bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down
bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up
bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down
# To copy, left click and drag to highlight text in yellow,
# once you release left click yellow text will disappear and will automatically be available in clibboard
# # Use vim keybindings in copy mode
setw -g mode-keys vi
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
# ============================================================================================================================================================
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'