about summary refs log tree commit diff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf107
1 files changed, 107 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..8f3db13
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,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'