tmux config
added some new keybinds for switching windows/sessions custom menu for quick access to window/pane/session commands nested tmux appears to be working (decent.. not perfect) *slightly* better keybinds (on MBP at least) for (en|dis)abling active session
This commit is contained in:
+18
-1
@@ -91,17 +91,34 @@ set -g @continuum-restore 'on'
|
|||||||
set -g @resurrect-strategy-nvim 'session'
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
set -g @resurrect-processes 'ssh nvim man less tail btop htop vi vim' # space separated list of programs to restore
|
set -g @resurrect-processes 'ssh nvim man less tail btop htop vi vim' # space separated list of programs to restore
|
||||||
|
|
||||||
set -g @matryoshka_down_keybind 'M-d' # keybind to disable outer-most active tmux
|
set -g @matryoshka_down_keybind 'M-d' # keybind to disable outer-most active tmux
|
||||||
set -g @matryoshka_up_keybind 'M-e' # keybind to enable inner-most inactive tmux
|
set -g @matryoshka_up_keybind 'M-e' # keybind to enable inner-most inactive tmux
|
||||||
set -g @matryoshka_up_recursive_keybind 'M-U' # keybind to recursively enable all tmux instances
|
set -g @matryoshka_up_recursive_keybind 'M-U' # keybind to recursively enable all tmux instances
|
||||||
set -g @matryoshka_inactive_status_style 'fg=default,bg=brightblack' # TODO: Try to make this look better..
|
set -g @matryoshka_inactive_status_style 'fg=default,bg=brightblack' # TODO: Try to make this look better..
|
||||||
# set -g @matryoshka_status_style_option 'my-status-style'
|
# set -g @matryoshka_status_style_option 'my-status-style'
|
||||||
|
|
||||||
|
# use fzf to switch sessions
|
||||||
|
unbind s
|
||||||
|
bind-key s run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
||||||
|
# use fzf to switch windows
|
||||||
|
unbind w
|
||||||
|
bind-key w run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch"
|
||||||
|
|
||||||
##### FZF settings
|
##### FZF settings
|
||||||
TMUX_FZF_SESSION_FORMAT="#{session_windows} windows"
|
TMUX_FZF_SESSION_FORMAT="#{session_windows} windows"
|
||||||
|
|
||||||
|
bind m run-shell -b "$HOME/.config/tmux/plugins/tmux-fzf/scripts/menu.sh"
|
||||||
|
|
||||||
|
# needs 1 or 3+ entries.
|
||||||
TMUX_FZF_MENU=\
|
TMUX_FZF_MENU=\
|
||||||
|
"rename window\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh rename\n"\
|
||||||
"switch session\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch\n"\
|
"switch session\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch\n"\
|
||||||
"rename window\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh rename\n"
|
"change pane layout\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh layout\n"\
|
||||||
|
"break out pane\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh break\n"\
|
||||||
|
"join pane\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh join\n"\
|
||||||
|
"session options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/session.sh\n"\
|
||||||
|
"window options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/window.sh\n"\
|
||||||
|
"pane options\n$HOME/.config/tmux/plugins/tmux-fzf/scripts/pane.sh\n"
|
||||||
|
|
||||||
run '~/.config/tmux/plugins/tpm/tpm'
|
run '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
Reference in New Issue
Block a user