You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/terminals/tmux/tmux.sparse.conf

81 lines
2.7 KiB
Plaintext

# Improve Colors set -g default-terminal "screen-256color"
set -g default-terminal "st-256color"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# change keybinding to something sane
set -g prefix M-a
# Set scrollback buffer
set -g history-limit 10000
# Set display time to be longer to allow selecting
set -g display-panes-time 5000
# setup automatic renaming
set -g automatic-rename on
# escape sequence delay
set -g escape-time 10
#set -g default-shell $SHELL
# keybinds
bind-key v select-layout even-vertical
bind-key h select-layout even-horizontal
# vimlike keybinds
bind -n M-h "select-pane -L"
bind -n M-j "select-pane -D"
bind -n M-k "select-pane -U"
bind -n M-l "select-pane -R"
# binds path to current one
bind-key a attach -c "#{pane_current_path}"
# setting up TPM
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# adding tmux ssh support
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @plugin 'MunifTanjim/tmux-suspend'
# suspend key
set -g @suspend_key 'F12'
# suspend cutom colors
set -g @suspend_suspended_options " \
window-status-current-style::bg=color94 dim\\,fg=black, \
@mode_indicator_custom_prompt:: ---- , \
@mode_indicator_custom_mode_style::bg=brightblack\\,fg=black, \
status-style::bg=color94 dim\\,fg=black bold dim, \
"
# clock settings
set -g clock-mode-colour white
# status config
set -g status-interval 10
set -g status-style "bg=black, fg=brightWhite"
set -g status-right "%a, %b %d %l:%M %P #{tmux_mode_indicator}"
set -g status-right-length 100
set -g status-left ""
# change active window color
set-window-option -g window-status-current-style "bg=white, fg=black"
# set -g default-terminal "${TERM}"
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
# tmux auto start
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# # ressurct config
# set -g @continuum-save-interval 10
# set -g @resurrect-capture-pane-contents 'on'
# set -g @resurrect-strategy-vim 'session'
# set -g @continuum-boot 'on'
#set -g @continuum-systemd-start-cmd 'new-session -d -s doormat'
set-environment -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.local/share/tmux/plugins"
# auto install plugins at correct directory
if "test ! -d ~/.local/share/tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.local/share/tmux/plugins/tpm && ~/.local/share/tmux/plugins/tpm/bin/install_plugins'"
# run tpm
run '~/.local/share/tmux/plugins/tpm/tpm'