-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
67 lines (53 loc) · 2.07 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
# nvim colorscheme correction
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
#move status bar to the top
set-option -g status-position top
#change prefix key
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
#bindings for window navigation in vim
bind -n M-H previous-window
bind -n M-L next-window
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
#renumber-windows starting from 1
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
#set vim motions in tmux-yank
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# open new panes in the same directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
#setting tmux-pomodoro-plus to show on the status bar
# set -g status-right "#{pomodoro_status}"
set -g @catppuccin_pomo "#{pomodoro_status}"
set -g @pomodoro_on "#[fg=$text_red]🍅 "
set -g @pomodoro_complete "#[fg=$text_green]✅ "
set -g @pomodoro_auto_restart true # Auto-repeat the pomodoro? False by default
set -g @pomodoro_notifications 'on' # Enable desktop notifications from your terminal
set -g @pomodoro_sound 'on'
#setting tmux-pomodoro-plus to run as a granular timer
set -g @pomodoro_granularity 'on'
set -g status-interval 1 # Refresh the status line every second
# date and time in status bar
set -g @catppuccin_date_time "%Y-%m-%d %H:%M"
#set better seperators
set -g @catppuccin_left_separator "█"
set -g @catppuccin_right_separator "█"
#tmux-plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
set -g @plugin 'olimorris/tmux-pomodoro-plus'
run '~/.tmux/plugins/tpm/tpm'