-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
112 lines (93 loc) · 5.31 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @plugin 'maxmx03/tmux-pomodoro-plus#cmus'
set -g default-shell "/bin/bash"
set -sa terminal-overrides ",xterm*:Tc" # tmux display things in 256 colors
set -g prefix C-a # setting the prefix from C-b to C-a
unbind C-b # Free the original C-b prefix keybinding
set -s escape-time 1 # setting the delay between prefix and command
set -g base-index 1 # set the base index for windows to 1 instead of 0
setw -g pane-base-index 1 # set the base index for panes to 1 instead of 0
set -g mouse on # mouse support
setw -g monitor-activity on # enable alert
set -g visual-activity on # enable alert
setw -g mode-keys vi # enable vi keys
set -g @pomodoro_toggle 't' # Start/pause a Pomodoro/break
set -g @pomodoro_cancel 'T' # Cancel the current session
unbind t
set -g @pomodoro_skip '_' # Skip a Pomodoro/break
set -g @pomodoro_mins 25 # The duration of the Pomodoro
set -g @pomodoro_break_mins 5 # The duration of the break after the Pomodoro completes
set -g @pomodoro_intervals 4 # The number of intervals before a longer break is started
set -g @pomodoro_long_break_mins 15 # The duration of the long break
set -g @pomodoro_repeat "off" # Automatically repeat the Pomodoros?
set -g @pomodoro_disable_breaks "off" # Turn off breaks
set -g @pomodoro_on " " # The formatted output when the Pomodoro is running
set -g @pomodoro_complete " " # The formatted output when the break is running
set -g @pomodoro_pause " " # The formatted output when the Pomodoro/break is paused
set -g @pomodoro_prompt_break " break?" # The formatted output when waiting to start a break
set -g @pomodoro_prompt_pomodoro " start?" # The formatted output when waiting to start a Pomodoro
set -g @pomodoro_menu_position "R" # The location of the menu relative to the screen
set -g @pomodoro_sound "on" # Sound for desktop notifications (Run `ls /System/Library/Sounds` for a list of sounds to use on Mac)
set -g @pomodoro_notifications "on" # Enable desktop notifications from your terminal
set -g @pomodoro_granularity "off" # Enables MM:SS (ex: 00:10) format instead of the default (ex: 1m)
set -g @pomodoro_notification "$HOME/dotfiles/lib/bell.wav"
# reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind C-a send-prefix # ensure that wen can send ctr-a to other apps
# splitting panes
bind | split-window -h
bind - split-window -v
# quick window selection
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
bind -r C-Up resize-pane -U 5
bind -r C-Right resize-pane -R 5
bind -r C-Left resize-pane -L 5
bind -r C-Down resize-pane -D 5
bind-key -n -N 'Toggle popup window' F1 if-shell -F '#{==:#{session_name},popup}' {
detach-client
} {
display-popup -d "#{pane_current_path}" -xC -yC -w 80% -h 75% -E 'tmux attach-session -t popup || tmux new-session -s popup'
}
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
unbind p
bind p paste-buffer
bind-key -n F2 display-menu -x L -y 8 \
"Reload" r "source-file ~/.tmux.conf; display Reloaded!" \
"Choose Session" c choose-session \
"Detach session" d detach \
"Kill Session" x kill-session \
"List Keys" k list-keys \
set -g message-style fg=yellow,bold
set -g status-left-length 40
set -g status-interval 60
set -g status-justify centre
set -g status-position top
set -g status-style fg=colour255,bold,bg=default
setw -g pane-border-style fg=colour8
setw -g pane-active-border-style fg=white
setw -g window-status-style fg=white,bg=default
setw -g window-status-current-style fg=colour255,bold,bg=default
setw -g window-style fg=colour8
setw -g window-active-style fg=white
setw -g window-status-activity-style fg=cyan
setw -g window-status-format "#W"
setw -g window-status-current-format " #W"
fg_color="#[default]#{?client_prefix,#[fg=colour6],#{?pane_in_mode,#[fg=colour3],#{?pane_synchronized,#[fg=colour5],#[fg=colour4]}}}"
bg_color="#[fg=black]#{?client_prefix,#[bg=colour6],#{?pane_in_mode,#[bg=colour3],#{?pane_synchronized,#[bg=colour5],#[bg=colour4]}}}"
status_left="$fg_color #[fg=colour255]#S #[fg=red]#{pomodoro_status}"
status_right="%d %b %R ${fg_color}█$bg_color#H$fg_color█"
set -g @mode_indicator_prefix_prompt " INSERT $status_left"
set -g @mode_indicator_copy_prompt " YANK $status_left"
set -g @mode_indicator_sync_prompt " SYNC $status_left"
set -g @mode_indicator_empty_prompt " NORMAL $status_left"
set -g @mode_indicator_prefix_mode_style 'bg=colour6,fg=black'
set -g @mode_indicator_copy_mode_style 'bg=colour3,fg=black'
set -g @mode_indicator_sync_mode_style 'bg=colour5,fg=black'
set -g @mode_indicator_empty_mode_style 'bg=colour4,fg=black'
set -g status-left "#{tmux_mode_indicator}"
set -g status-right "$status_right"
run '~/.tmux/plugins/tpm/tpm'