set -g default-terminal "xterm-256color" set -ag terminal-overrides ",xterm-256color:RGB" set -s escape-time 0 set-option -g focus-events on unbind C-b set-option -g prefix C-s bind-key C-s send-prefix bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" set -g base-index 1 set -g status-style 'bg=#45403d fg=#d4be98' set -g status-left-length 30 set-window-option -g mode-keys vi bind -T copy-mode-vi v send-keys -X begin-selection # differentiate copy on linux and max if-shell -b '[ "$(uname -s)" = "Linux" ]' { bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' } if-shell -b '[ "$(uname -s)" = "Darwin" ]' { bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy' } # vim-like pane switching bind -r ^ last-window bind -r k select-pane -U bind -r j select-pane -D bind -r h select-pane -L bind -r l select-pane -R bind -r D neww -c "#{pane_current_path}" "nvim TODO.md" bind -r t neww -c "~" "nvim ~/.TODO.md" bind-key -r f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer" bind-key -r g run-shell "tmux neww ~/.config/tmux/tmux-sessionizer $XDG_CONFIG_HOME" bind-key -r T run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~/temp" bind-key -r R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~" bind-key -r G run-shell "tmux neww ~/.config/tmux/tmux-ggclone"