-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
91 lines (70 loc) · 2.53 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
# Nice colors
set -g default-terminal "screen-256color"
# Reload the config
bind-key r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Ignore ESC
set -g escape-time 0
# Buffer size
set-option -g history-limit 10000
# Start windows at 1 instead of 0
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# Autorename windows
set -g automatic-rename on
# Status bar content
set -g status on
set -g status-interval 5
# set -g status-left '#[bg=#(pomodoro tmux-color)] #(cacheout 1h emoji-weather -temp=f -zipcode=19382)'
set -g status-left '#[bg=#(pomodoro tmux-color)] ❄️ '
set -g status-left-length 100
set -g status-right '#[fg=colour245]#(pomodoro status --format "%%d %%!R⏱ %%c%%!g🍅") #{battery_icon}#{battery_remain}#{online_status}#[fg=default]#(TZ="America/New_York" date "+%%l:%%M %%Z") '
set -g status-right-length 100
# Codespaces
if-shell -b '[ "$CODESPACES" ]' {
set -g status-left ' #[fg=colour8]#(echo "$GITHUB_REPOSITORY")@#(cd "$WORKING_DIRECTORY" && git branch --show-current)'
}
# Status bar styling
set -g status-style bg=colour235
set -g status-position top
set -g window-status-current-format "#[fg=colour203] #(basename '#{pane_current_path}')#F"
set -g window-status-format "#[fg=colour7] #(basename '#{pane_current_path}')"
# Show activity in other windows
set -g monitor-activity on
set -g window-status-activity-style bold
# Messages
set -g display-time 3000
set -g message-style bg=colour203,fg=black
# Panes
set -g pane-border-style fg=colour8 # dark grey
set -g pane-active-border-style fg=colour7 # light grey
# Clock
set -g clock-mode-style 12
set -g clock-mode-colour colour203 # coral
# Mouse
set -g mouse on
# Pane Navigation
bind-key C-b select-pane -t :.+
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Kill all other panes except for the current one
bind-key o kill-pane -a -t .
# Tab Navigation
bind-key -n S-left prev
bind-key -n S-right next
bind-key -n C-S-left swap-window -t -1
bind-key -n C-S-right swap-window -t +1
# Open notes window
bind-key n new-window -c ~/Notes -n notes -t 0 'nvim +FZF'
# Pomodoro
bind-key p if-shell 'pomodoro start' ''
bind-key P if-shell 'pomodoro clear' ''
# Resize current pane to 80 columns
bind-key 8 resize-pane -x 80
# Lock the screen
bind-key l run-shell '/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
# Open splits in the same directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -b -l 80 -c "#{pane_current_path}"