about summary refs log tree commit diff
path: root/.tmux.conf
blob: 8f3db133ec93ed8d857f5543d8904fed3ff374ed (plain)
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
# Set Shell to ZSH
set-option -g default-shell /bin/zsh

# Use C-t and C-n for the prefix
set-option -g prefix C-space

# Easy Config Reload
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded"

# Mouse Mode
set -g mouse on

# Fix Colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*col*:Tc"

# Fix Pane Numbers
set -g base-index 1
setw -g pane-base-index 1

# Switch Pane Keys
bind-key h select-pane -L
bind-key i select-pane -R
bind-key e select-pane -U
bind-key n select-pane -D

# Easier Splitting
bind-key v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"

# Quick Create and tab through windows
# bind-key -n C-Tab next-window
# bind-key -n C-S-Tab previous-window
bind-key Tab next-window
bind-key k confirm-before -p "kill window #W? (y/n)" kill-window
bind-key c new-window

# Bind Popup Window
bind-key t display-popup

bind-key g display-popup \
  -d "#{pane_current_path}" \
  -w 80% \
  -h 80% \
  -E "lazygit"

bind-key f display-popup \
  -w 80% \
  -h 80% \
  -E "nvim -c \"Oil\""

bind-key l display-popup \
  -d "#{pane_current_path}" \
  -w 80% \
  -h 80% \
  -E "elia"

# Fix delay on vim escape
set -s escape-time 0

# Change background color of a tab when activity occurs
setw -g monitor-activity on

# Do NOT reset the color of the tab after activity stops occuring
setw -g monitor-silence 0

# Disable bell
setw -g monitor-bell off

# Disable visual text box when activity occurs
set -g visual-activity off

# Images in TMUX
set -g allow-passthrough all
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM

# Set Terminal Title
set-option -g set-titles on
set-option -g set-titles-string "#T"

# Bind Toggle Status Bar
bind m set-option status

# tmux2k
set -g @tmux2k-start-icon "λ"
set -g @tmux2k-theme 'duo'
# Rose Pine
# set -g @tmux2k-duo-bg '#191724'
# Pinheiro Preto
set -g @tmux2k-duo-bg '#1d2021'
set -g @tmux2k-duo-fg '#98a18c'
set -g @tmux2k-icons-only true
set -g @tmux2k-left-plugins "git cwd"
set -g @tmux2k-right-plugins "cpu cpu-temp battery time"
set -g @tmux2k-refresh-rate 5
set -g @tmux2k-window-list-alignment "left"
set -g @tmux2k-cpu-temp-round true
set -g @tmux2k-time-format "%a %H:%M"

# TMUX Packages

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin '2kabhishek/tmux2k'

run '~/.tmux/plugins/tpm/tpm'