aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2025-04-22 08:57:49 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2025-04-22 08:57:49 -0400
commit042e8b1cd2445b3daeff364b64cf30132752db92 (patch)
tree5a062780e5527b52af5a9b395ae831d3afb89281
parentremove extra keymap (diff)
downloaddotfiles-042e8b1cd2445b3daeff364b64cf30132752db92.zip
update tmux settings
m---------tmux/.config/tmux/plugins/tmux-sensible0
m---------tmux/.config/tmux/plugins/tpm0
-rw-r--r--tmux/.config/tmux/tmux.conf89
-rw-r--r--tmux/.tmux.conf61
m---------tmux/.tmux/plugins/tpm0
5 files changed, 89 insertions, 61 deletions
diff --git a/tmux/.config/tmux/plugins/tmux-sensible b/tmux/.config/tmux/plugins/tmux-sensible
new file mode 160000
+Subproject 25cb91f42d020f675bb0a2ce3fbd3a5d96119ef
diff --git a/tmux/.config/tmux/plugins/tpm b/tmux/.config/tmux/plugins/tpm
new file mode 160000
+Subproject 99469c4a9b1ccf77fade25842dc7bafbc8ce994
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
new file mode 100644
index 0000000..7f5851e
--- /dev/null
+++ b/tmux/.config/tmux/tmux.conf
@@ -0,0 +1,89 @@
+# Remap prefix from 'C-b' to 'C-a'
+#
+# This works well if you remap the regular
+# Caps Lock key to Ctrl.
+unbind C-b
+set-option -g prefix C-a
+bind-key C-a send-prefix
+
+# More intuitive pane splits.
+#
+# Split panes using | for horizontal splits
+# and - for vertical splits
+bind | split-window -h
+bind - split-window -v
+unbind '"'
+unbind %
+
+# Enable faster pane switching
+#
+# Switch panes using Alt-arrow without prefix
+bind -n M-Left select-pane -L
+bind -n M-Right select-pane -R
+bind -n M-Up select-pane -U
+bind -n M-Down select-pane -D
+
+# Set terminal colors
+set-option -sa terminal-overrides ",xterm*:Tc"
+
+# Enable mouse support (clickable windows, panes, resizable panes)
+set -g mouse on
+
+# Start windows and panes at 1, not 0
+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
+
+# kill pane
+bind-key x kill-pane
+
+# Pane resizing
+# bind -n M-h resize-pane -L
+# bind -n M-l resize-pane -R
+# bind -n M-k resize-pane -U
+# bind -n M-j resize-pane -D
+#
+# # Move window to the left
+# bind -n M-i swap-window -t -1
+#
+# # Move window to the right
+# bind -n M-o swap-window -t +1
+#
+# Set vi mode
+set-window-option -g mode-keys vi
+
+# Use visual selection mode as 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
+
+# Save and restore session
+# set -g @resurrect-save 'S'
+# set -g @resurrect-restore 'R'
+
+# Tmux theme
+# set -g @catppuccin_flavour 'mocha'
+# set -g @catppuccin_right_separator "█"
+# set -g @catppuccin_left_separator "█"
+#
+# TMUX_FZF_ORDER="session|window|pane|command|keybinding"
+# TMUX_FZF_OPTIONS="-p -w 90% -h 70% -m"
+
+# # more options here: https://github.com/sainnhe/tmux-fzf/issues/6#issuecomment-578750879
+# bind w run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch"
+
+# Plugins
+set -g @plugin 'tmux-plugins/tpm'
+set -g @plugin 'tmux-plugins/tmux-sensible'
+
+# set -g @plugin 'tmux-plugins/tpm'
+# set -g @plugin 'tmux-plugins/tmux-sensible'
+# set -g @plugin 'sainnhe/tmux-fzf'
+# set -g @plugin 'christoomey/vim-tmux-navigator'
+# set -g @plugin 'oca159/catppuccin-tmux'
+# set -g @plugin 'tmux-plugins/tmux-resurrect'
+# set -g @plugin 'tmux-plugins/tmux-continuum'
+# set -g @resurrect-strategy-nvim 'session'
+#
+run '~/.tmux/plugins/tpm/tpm'
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
deleted file mode 100644
index b18c61c..0000000
--- a/tmux/.tmux.conf
+++ /dev/null
@@ -1,61 +0,0 @@
-# Set terminal colors
-set-option -sa terminal-overrides ",xterm*:Tc"
-
-# Enable mouse support
-set -g mouse on
-
-# Start windows and panes at 1, not 0
-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
-
-# kill pane
-bind-key x kill-pane
-
-# Pane resizing
-bind -n M-h resize-pane -L
-bind -n M-l resize-pane -R
-bind -n M-k resize-pane -U
-bind -n M-j resize-pane -D
-
-# Move window to the left
-bind -n M-i swap-window -t -1
-
-# Move window to the right
-bind -n M-o swap-window -t +1
-
-# Set vi mode
-set-window-option -g mode-keys vi
-
-# Use visual selection mode as 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
-
-# Save and restore session
-set -g @resurrect-save 'S'
-set -g @resurrect-restore 'R'
-
-# Tmux theme
-set -g @catppuccin_flavour 'mocha'
-set -g @catppuccin_right_separator "█"
-set -g @catppuccin_left_separator "█"
-
-TMUX_FZF_ORDER="session|window|pane|command|keybinding"
-TMUX_FZF_OPTIONS="-p -w 90% -h 70% -m"
-
-# more options here: https://github.com/sainnhe/tmux-fzf/issues/6#issuecomment-578750879
-bind w run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch"
-
-# Plugins
-set -g @plugin 'tmux-plugins/tpm'
-set -g @plugin 'tmux-plugins/tmux-sensible'
-set -g @plugin 'sainnhe/tmux-fzf'
-set -g @plugin 'christoomey/vim-tmux-navigator'
-set -g @plugin 'oca159/catppuccin-tmux'
-set -g @plugin 'tmux-plugins/tmux-resurrect'
-set -g @plugin 'tmux-plugins/tmux-continuum'
-set -g @resurrect-strategy-nvim 'session'
-
-run '~/.tmux/plugins/tpm/tpm'
diff --git a/tmux/.tmux/plugins/tpm b/tmux/.tmux/plugins/tpm
new file mode 160000
+Subproject 99469c4a9b1ccf77fade25842dc7bafbc8ce994