aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.tmux.conf63
1 files changed, 63 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..f172bd2
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,63 @@
+set -g default-terminal "tmux-256color"
+set -ga terminal-features "*:hyperlinks"
+set -g prefix C-a
+unbind C-b
+
+bind -r n next-window
+bind -r p previous-window
+bind -r C-n switch-client -n
+bind -r C-p switch-client -p
+bind Q confirm-before -p "Kill session #S? (y/n)" kill-session
+
+unbind %
+bind v split-window -h -c "#{pane_current_path}"
+unbind '"'
+bind - split-window -v -c "#{pane_current_path}"
+
+bind R source-file ~/.config/tmux/tmux.conf
+
+bind -r j resize-pane -D 5
+bind -r k resize-pane -U 5
+bind -r l resize-pane -R 5
+bind -r h resize-pane -L 5
+bind -r m resize-pane -Z
+
+set -g mouse on
+set-option -g focus-events on
+
+set-window-option -g mode-keys vi
+bind P paste-buffer
+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
+bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
+
+unbind -T copy-mode-vi MouseDragEnd1Pane
+
+bind-key -r C-c copy-mode
+
+bind-key -r i run-shell "tmux neww /usr/local/bin/cht.sh"
+bind-key -n C-f run-shell "tmux neww /usr/local/bin/tmus"
+bind-key -n C-t run-shell "tmux neww /usr/local/bin/check_todo.sh"
+
+set -gq allow-passthrough on
+
+set -g @plugin 'tmux-plugins/tpm'
+set -g @plugin 'tmux-plugins/tmux-sensible'
+set -g @plugin 'christoomey/vim-tmux-navigator'
+set -g @plugin 'rose-pine/tmux'
+
+set -g @rose_pine_variant 'main'
+
+set -g @rose_pine_host 'on'
+set -g @rose_pine_date_time ''
+set -g @rose_pine_user 'on'
+set -g @rose_pine_directory 'on'
+set -g @rose_pine_bar_bg_disable 'on'
+
+set -g @rose_pine_bar_bg_disabled_color_option 'default'
+
+set -g @rose_pine_width_to_hide '80'
+set -g @rose_pine_window_count '5'
+
+run '~/.tmux/plugins/tpm/tpm'