diff options
Diffstat (limited to 'src/.tmux.conf')
-rwxr-xr-x | src/.tmux.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/.tmux.conf b/src/.tmux.conf new file mode 100755 index 0000000..7b66371 --- /dev/null +++ b/src/.tmux.conf @@ -0,0 +1,33 @@ +# Basic settings +set -g default-terminal "screen-256color" +set -as terminal-overrides ",*:Tc" +set -g mouse on +setw -g mode-keys vi +set -g status on +set -g history-limit 10000 +set -g terminal-overrides ',*:Tc' + +# Pass through bracketed paste +bind-key ] run-shell "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" + +# Swap window +bind-key -n M-a swap-window -t -1\; previous-window +bind-key -n M-s swap-window -t +1\; next-window + +# Move +bind-key -n M-q previous-window +bind-key -n M-w next-window + + +# Explicitly enable bracketed paste in terminals that support it +set-option -ga terminal-features ',xterm*:clipboard,bpaste' + +# force bracketed-paste for modern terminals: +set -as terminal-overrides ',*:Ss=\E[%p1%d;%;%p2%ds,Se=\E[2u' + +# Load theme from ~/.tmux/themes/selected.theme +if-shell 'test -f ~/.tmux/themes/selected.theme' "source-file ~/.tmux/themes/selected.theme" + +# Fallback if no theme is selected +if-shell 'test ! -f ~/.tmux/themes/selected.theme' "display-message 'No theme selected. Create ~/.tmux/themes/selected.theme'" + |