summaryrefslogtreecommitdiff
path: root/.tmux.conf
blob: f4600263f5bb1269c9e794ec112c4c0bc1ae9928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Unbind all keys (except copy-mode)
unbind -a -T prefix
unbind -a -T root

# Custom bindings
set -g prefix C-f
bind-key -n C-f send-prefix
bind-key f command-prompt
bind-key \' split-window -v -c "#{pane_current_path}"
bind-key \; split-window -h -c "#{pane_current_path}"
bind-key l select-pane -R
bind-key C-l resize-pane -R
bind-key h select-pane -L
bind-key C-h resize-pane -L
bind-key j select-pane -D
bind-key C-j resize-pane -D
bind-key k select-pane -U
bind-key C-k resize-pane -U
bind-key [ copy-mode
bind-key ] paste-buffer
bind-key o new-window
bind-key n next-window
bind-key p previous-window
bind-key i break-pane

# Status bar with external command
set -g status-right-length 120
set -g status-right "#(status)"

# Copy to clipboard, not only the tmux buffer
set -s copy-command "xsel -ib"

# Destroy unattached session (use only as multiplexer)
set -g destroy-unattached

# Select and prompt for opening URLs on lead + U with external command
bind u run "tmux capture-pane; tmux show-buffer | dmenu-urlselect | xargs open-url"

Generated with cgit - Back to sebastiano.tronto.net