all repos — dotfiles @ 55f5cb668da30bd1ac1d28a0d7a42aa62dce56c0

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
19
20# window binds
21bind -n M-h  previous-window
22bind -n M-l next-window
23bind-key v split-window -h
24bind-key s choose-session
25bind-key ) swap-window -t +2
26bind-key ( swap-window -t -1
27bind-key [ copy-mode
28
29# statusline on top
30set-option -g status-position top
31
32# statusline hide / unhide
33bind -n M-down set -q status off
34bind -n M-up set -q status on
35bind P paste-buffer
36
37bind-key -T copy-mode-vi v send-keys -X begin-selection
38bind-key -T copy-mode-vi y send-keys -X copy-selection
39bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
40
41bind E command-prompt -p "Command:" \
42         "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \
43         | xargs -I PANE tmux send-keys -t PANE '%1' Enter\""
44
45set-window-option -g allow-rename off
46
47set -g pane-border-style fg=colour11
48set -g pane-active-border-style fg=colour8
49
50set -g status-justify right
51set -g status-right ""
52set -g status-style "bg=colour0"
53set -ag status-style "fg=colour7"
54
55set -g window-status-current-format "#[fg=colour15]    #W"
56set -g window-status-format "#[fg=colour8]    #W"
57
58set -g status-left-length 100
59set -g status-left  "#[fg=colour8]time #[fg=colour15]#(date +"%H:%M")   "
60set -ag status-left "#[fg=colour8]date #[fg=colour15]#(date.sh)  "
61set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/bin/bat -q)"
62
63run-shell ~/leet/tmux-resurrect/resurrect.tmux