# set -g default-terminal "tmux-255color" # TODO: messes up backspace render, fix set -s escape-time 0 unbind C-b set-option -g prefix C-Space bind-key C-Space send-prefix set -g status-style 'bg=#111111 fg=#22cc00' set -g base-index 0 # vim-like movement stuff set-window-option -g mode-keys vi bind -T copy-mode-vi v send-keys -X begin-selection bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' bind -r k select-pane -U bind -r j select-pane -D bind -r h select-pane -L bind -r l select-pane -R # reload tmux.conf bind r source-file "~/.config/tmux/tmux.conf" \; display-message "tmux.conf reloaded" # kill the current session # TODO: would it clash with other bindings to change these to C-q and C-w ? bind-key Q rename-session zzzz-temp-kill\; switch-client -p\; kill-session -t zzzz-temp-kill # TODO: if i can combine this into the above when only 1 session remains, do so bind-key W kill-session # find and switching for sessions, include using tmux-sessionizer unbind-key f; unbind-key C-f; unbind-key C-s unbind-key C-h; unbind-key C-l; unbind-key C-o; unbind-key C-n; unbind-key C-p bind-key C-f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer" bind-key C-s run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing" bind-key C-h run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub" bind-key C-l switch-client -l bind-key C-o last-window bind-key -r C-n next-window bind-key -r C-p previous-window