all repos — dotfiles @ 098a241f1a8b08ed0618c161bbd9ae87362c6c95

my *nix dotfiles

home/.tmux.conf (view raw)

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