# TODO: Figure out how to get undercurls working on windows (works on linux) # support 256 color set -g default-terminal 'tmux-256color' set -as terminal-overrides ',*:Tc' # undercurl / colored underline support set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' set -g escape-time 50 set -g mouse on set -g prefix C-a set -g base-index 1 set -g pane-base-index 1 set -g detach-on-destroy off bind-key -N "Switch last session" A switch-client -l bind-key -N "Clock" T clock-mode bind-key -N "Host: switch" s run-shell ~/.local/bin/tmux-ssh bind-key -N "Session: new" f run-shell ~/.local/bin/tmux-sessionizer bind-key -N "Session: switch" F run-shell ~/.local/bin/tmux-sessions bind-key -N "Window: new" t new-window # i3/sway style window navigation bind-key '!' if-shell 'tmux swapw -t :1 -d' '' 'movew -t :1' bind-key '@' if-shell 'tmux swapw -t :2 -d' '' 'movew -t :2' bind-key '#' if-shell 'tmux swapw -t :3 -d' '' 'movew -t :3' bind-key '$' if-shell 'tmux swapw -t :4 -d' '' 'movew -t :4' bind-key '%' if-shell 'tmux swapw -t :5 -d' '' 'movew -t :5' bind-key '^' if-shell 'tmux swapw -t :6 -d' '' 'movew -t :6' bind-key '&' if-shell 'tmux swapw -t :7 -d' '' 'movew -t :7' bind-key '*' if-shell 'tmux swapw -t :8 -d' '' 'movew -t :8' bind-key '(' if-shell 'tmux swapw -t :9 -d' '' 'movew -t :9' bind-key ')' if-shell 'tmux swapw -t :0 -d' '' 'movew -t :0' set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-pain-control' set -g @plugin 'lawabidingcactus/tmux-gruvbox-truecolor' if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ "run 'git clone https://github.com/tmux-plugins/tpm $XDG_CONFIG_HOME/tmux/plugins/tpm \ && $XDG_CONFIG_HOME/tmux/plugins/tpm/bin/install_plugins'" run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' set-hook -g session-created 'if -F "#{m/r:^[0-9]+$,#{session_name}}" "rename-session \"#{b:session_path}\""' %if #{m:*ssh,#{socket_path}} source "$XDG_CONFIG_HOME/tmux/ssh.conf" %endif