.tmux.conf (1044B)
1 # Unbind all keys (except copy-mode) 2 unbind -a -T prefix 3 unbind -a -T root 4 5 # Custom bindings 6 set -g prefix C-f 7 bind-key -n C-f send-prefix 8 bind-key f command-prompt 9 bind-key \' split-window -v -c "#{pane_current_path}" 10 bind-key \; split-window -h -c "#{pane_current_path}" 11 bind-key l select-pane -R 12 bind-key C-l resize-pane -R 13 bind-key h select-pane -L 14 bind-key C-h resize-pane -L 15 bind-key j select-pane -D 16 bind-key C-j resize-pane -D 17 bind-key k select-pane -U 18 bind-key C-k resize-pane -U 19 bind-key [ copy-mode 20 bind-key ] paste-buffer 21 bind-key o new-window 22 bind-key n next-window 23 bind-key p previous-window 24 bind-key i break-pane 25 26 # Status bar with external command 27 set -g status-right-length 120 28 set -g status-right "#(status)" 29 30 # Copy to clipboard, not only the tmux buffer 31 set -s copy-command "xsel -ib" 32 33 # Destroy unattached session (use only as multiplexer) 34 set -g destroy-unattached 35 36 # Select and prompt for opening URLs on lead + U with external command 37 bind u run "tmux capture-pane; tmux show-buffer | dmenu-urlselect | xargs open-url"