all repos — dotfiles @ dd9f656317be3c3b1181a80d4cf6638666fac3af

my *nix dotfiles

home/.tmux.conf (view raw)

 1set -g prefix C-q
 2unbind-key C-b
 3bind-key C-q send-prefix
 4
 5bind r source-file ~/.tmux.conf
 6
 7set-option -g default-terminal xterm-256color
 8set -as terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[2 q'
 9set escape-time 20
10
11set -g mouse on
12
13set -g base-index 1
14setw -g pane-base-index 1
15
16# pane binds
17bind -n M-j select-pane -D 
18bind -n M-k select-pane -U
19bind -n M-h select-pane -L
20bind -n M-l  select-pane -R
21
22# window binds
23bind -n C-M-h  previous-window
24bind -n C-M-l next-window
25bind-key v split-window -h
26bind-key s choose-session
27bind-key ) swap-window -t +2
28bind-key ( swap-window -t -1
29bind-key [ copy-mode
30
31# statusline on top
32set-option -g status-position top
33
34# statusline hide / unhide
35bind -n M-down set -q status off
36bind -n M-up set -q status on
37bind P paste-buffer
38
39bind-key -T copy-mode-vi v send-keys -X begin-selection
40bind-key -T copy-mode-vi y send-keys -X copy-selection
41bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
42
43bind E command-prompt -p "Command:" \
44         "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \
45         | xargs -I PANE tmux send-keys -t PANE '%1' Enter\""
46
47set-window-option -g allow-rename off
48
49set -g pane-border-style fg=colour11
50set -g pane-active-border-style fg=colour8
51
52set -g status-justify right
53set -g status-right ""
54set -g status-style "bg=colour0"
55set -ag status-style "fg=colour7"
56
57set -g window-status-current-format "#[fg=colour15]    #W"
58set -g window-status-format "#[fg=colour8]    #W"
59
60set -g status-left-length 100
61set -g status-left  "#[fg=colour8]time #[fg=colour15]#(date +"%H:%M")   "
62set -ag status-left "#[fg=colour8]date #[fg=colour15]#(date.sh)  "
63set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/bin/bat -q)"
64
65run-shell ~/leet/tmux-resurrect/resurrect.tmux