summaryrefslogtreecommitdiff
path: root/.tmux.conf
blob: cd28e24d12dd56b6de95c8ea8e6c13d986cd98d8 (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
38
39
40
41
# 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 -J; tmux show-buffer | dmenu-urlselect | xargs open-url"
bind u {
	capture-pane -J
	display-popup -w 50% -T "Open URL" -E "tmux show-buffer | dmenu-urlselect -m fzf | xargs open-url; sleep 0.1"
}

Generated with cgit - Back to sebastiano.tronto.net