refactor(tmux): simplify plugin list, cleanup theme template, fix installer path
- Comment out opencode/lazygit keybinds, add C-x break-pane bind - Remove tmux-sensible and tmux.nvim plugins, add usage comments for remaining plugins - Move source-file theme after tpm init - Simplify status bar styling in themed template, drop align=centre - Fix theme symlink path in installer (extra current/ segment)
This commit is contained in:
+20
-10
@@ -75,8 +75,8 @@ bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
|
|||||||
|
|
||||||
bind c new-window -c "#{pane_current_path}"
|
bind c new-window -c "#{pane_current_path}"
|
||||||
bind e run "tmux split -h /usr/bin/nvim"
|
bind e run "tmux split -h /usr/bin/nvim"
|
||||||
bind o display-popup -w 80% -h 80% -E /usr/bin/opencode
|
#bind o display-popup -w 80% -h 80% -E /usr/bin/opencode
|
||||||
bind g display-popup -w 80% -h 80% -E /usr/bin/lazygit
|
#bind g display-popup -w 80% -h 80% -E /usr/bin/lazygit
|
||||||
|
|
||||||
# split windows like vim
|
# split windows like vim
|
||||||
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
# vim's definition of a horizontal/vertical split is reversed from tmux's
|
||||||
@@ -106,6 +106,7 @@ bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
|
|||||||
# join pane
|
# join pane
|
||||||
bind-key C-h choose-window 'join-pane -h -s "%%"'
|
bind-key C-h choose-window 'join-pane -h -s "%%"'
|
||||||
bind-key C-v choose-window 'join-pane -s "%%"'
|
bind-key C-v choose-window 'join-pane -s "%%"'
|
||||||
|
bind-key C-x break-pane
|
||||||
|
|
||||||
bind -r h select-pane -L
|
bind -r h select-pane -L
|
||||||
bind -r j select-pane -D
|
bind -r j select-pane -D
|
||||||
@@ -141,18 +142,27 @@ set -g status-position top
|
|||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
set -g @plugin 'tmux-plugins/tmux-copycat'
|
|
||||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
||||||
set -g @plugin 'sainnhe/tmux-fzf'
|
|
||||||
set -g @plugin 'joshmedeski/tmux-fzf-url'
|
|
||||||
set -g @plugin 'aserowy/tmux.nvim'
|
|
||||||
set -g @plugin 'vieitesss/agent-radar'
|
|
||||||
|
|
||||||
source-file ~/.config/tmux/theme
|
# prefix + ctrl-f - simple file search
|
||||||
|
# prefix + ctrl-g - jumping over git status files (best used after git status command)
|
||||||
|
# prefix + alt-h - jumping over SHA-1/SHA-256 hashes (best used after git log command)
|
||||||
|
# prefix + ctrl-u - url search (http, ftp and git urls)
|
||||||
|
# prefix + ctrl-d - number search (mnemonic d, as digit)
|
||||||
|
# prefix + alt-i - ip address search
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||||
|
|
||||||
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
|
# prefix + F
|
||||||
|
set -g @plugin 'sainnhe/tmux-fzf'
|
||||||
|
# prefix + u
|
||||||
|
set -g @plugin 'joshmedeski/tmux-fzf-url'
|
||||||
|
# prefix + a
|
||||||
|
set -g @plugin 'vieitesss/agent-radar'
|
||||||
|
|
||||||
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
||||||
run '~/.config/tmux/plugins/tpm/tpm'
|
run '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
|
source-file ~/.config/tmux/theme
|
||||||
|
|||||||
@@ -25,16 +25,16 @@ set -g @prefix_highlight_fg "${color_highlight_fg}"
|
|||||||
set -g @prefix_highlight_bg "${color_highlight_bg}"
|
set -g @prefix_highlight_bg "${color_highlight_bg}"
|
||||||
|
|
||||||
# Status bar settings
|
# Status bar settings
|
||||||
set -g status-style "bg=${color_status_bg},fg=${color_status_fg}"
|
set -g status-style "bg=${color_bg0},fg=${color_fg0}"
|
||||||
set -g status "on"
|
set -g status "on"
|
||||||
set -g status-bg "${color_bg0}"
|
set -g status-bg "${color_bg0}"
|
||||||
set -g status-justify "left"
|
set -g status-justify "left"
|
||||||
set -g status-left-length "100"
|
#set -g status-left-length "100"
|
||||||
set -g status-right-length "100"
|
set -g status-right-length "100"
|
||||||
|
|
||||||
# Messages
|
# Messages
|
||||||
set -g message-style "fg=${color_selected_fg},bg=${color_selected_bg},align=centre"
|
set -g message-style "fg=${color_selected_fg},bg=${color_selected_bg}"
|
||||||
set -g message-command-style "fg=${color_selected_fg},bg=${color_selected_bg},align=centre"
|
set -g message-command-style "fg=${color_selected_fg},bg=${color_selected_bg}"
|
||||||
|
|
||||||
# Panes
|
# Panes
|
||||||
set -g pane-border-style "fg=${pane_border_fg}"
|
set -g pane-border-style "fg=${pane_border_fg}"
|
||||||
@@ -54,9 +54,10 @@ set -g window-status-format "#[fg=${color_highlight_fg},bg=${color_highlight_bg}
|
|||||||
# Statusline - right side
|
# Statusline - right side
|
||||||
set -g status-right "#[fg=${color_fg1},bg=${color_bg0},nobold,nounderscore,noitalics]%Y-%m-%d %H:%M #[fg=${color_fg0},bg=${color_highlight_fg},nobold,nounderscore,noitalics] #[fg=${color_fg0},bg=${color_bg1}] #(echo '#{pane_current_path}' | rev | cut -d'/' -f-2 | rev) #[fg=${color_fg0},bg=${color_current_fg},nobold,nounderscore,noitalics] #[fg=${color_fg0},bg=${color_bg1}] #S "
|
set -g status-right "#[fg=${color_fg1},bg=${color_bg0},nobold,nounderscore,noitalics]%Y-%m-%d %H:%M #[fg=${color_fg0},bg=${color_highlight_fg},nobold,nounderscore,noitalics] #[fg=${color_fg0},bg=${color_bg1}] #(echo '#{pane_current_path}' | rev | cut -d'/' -f-2 | rev) #[fg=${color_fg0},bg=${color_current_fg},nobold,nounderscore,noitalics] #[fg=${color_fg0},bg=${color_bg1}] #S "
|
||||||
|
|
||||||
# Statusline - left side (empty)
|
|
||||||
set -g status-left ""
|
|
||||||
|
|
||||||
# Modes
|
# Modes
|
||||||
set -g clock-mode-colour "${color_status_fg}"
|
set -g clock-mode-colour "${color_status_fg}"
|
||||||
set -g mode-style "fg=${color_highlight_fg} bg=${color_bg1} bold"
|
set -g mode-style "fg=${color_highlight_fg} bg=${color_bg1} bold"
|
||||||
|
|
||||||
|
# Statusline - left side (empty)
|
||||||
|
set -g status-left ""
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ fi
|
|||||||
${DOTFILES_DIR}/sync-config config/tmux
|
${DOTFILES_DIR}/sync-config config/tmux
|
||||||
THEME_DIR="${HOME}/.config/omarchy/current/theme"
|
THEME_DIR="${HOME}/.config/omarchy/current/theme"
|
||||||
|
|
||||||
ln -snf ${THEME_DIR}/current/theme/tmux ${HOME}/.config/tmux/theme
|
ln -snf ${THEME_DIR}/tmux ${HOME}/.config/tmux/theme
|
||||||
|
|
||||||
# setup tmux
|
# setup tmux
|
||||||
if [[ ! -d ~/.config/tmux/plugins/tpm ]]; then
|
if [[ ! -d ~/.config/tmux/plugins/tpm ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user