all repos — dotfiles @ 7aea05e57ad97627f5907f1e8e220b61cc467254

my *nix dotfiles

home/.tmux.conf (view raw)

 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
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
set -g prefix C-q
unbind-key C-b
bind-key C-q send-prefix
set -g update-environment "KEYBOARD_LAYOUT"

bind r source-file ~/.tmux.conf

set-option -g default-terminal xterm-256color
set -as terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[2 q'
set escape-time 20

set -g mouse on

set -g base-index 1
setw -g pane-base-index 1

# pane binds
bind -n M-n select-pane -D 
bind -n M-e select-pane -U
bind -n M-y select-pane -L
bind -n M-o  select-pane -R

# window binds
bind -n C-M-y previous-window
bind -n C-M-o next-window
bind-key c split-window -h
bind-key v new-window
bind-key s choose-session
bind-key ) swap-window -t +2
bind-key ( swap-window -t -1
bind-key [ copy-mode

# statusline on top
set-option -g status-position top

# statusline hide / unhide
bind -n M-down set -q status off
bind -n M-up set -q status on
bind P paste-buffer

# workman layout
#bind-key o next-window
#
#bind-key -T copy-mode-vi n send-keys -X cursor-down
#bind-key -T copy-mode-vi e send-keys -X cursor-up
#bind-key -T copy-mode-vi y send-keys -X cursor-left
#bind-key -T copy-mode-vi o send-keys -X cursor-right
#bind-key -T copy-mode-vi k send-keys -X search-again
#bind-key -T copy-mode-vi K send-keys -X search-reverse
#bind-key -T copy-mode-vi N send-keys -X scroll-down
#bind-key -T copy-mode-vi E send-keys -X scroll-up
#bind-key -T copy-mode-vi j send-keys -X copy-selection
#
#bind-key -T choice-mode n send-keys -X down
#bind-key -T choice-mode e send-keys -X up
#bind-key -T choice-mode c-n send-keys -X choose
#
#bind-key -T edit-mode-vi c-n send-keys -X enter

bind E command-prompt -p "Command:" \
         "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \
         | xargs -I PANE tmux send-keys -t PANE '%1' Enter\""

set-window-option -g allow-rename off

set -g pane-border-style fg=colour11
set -g pane-active-border-style fg=colour8

set -g status-justify right
set -g status-right ""
set -g status-style "bg=colour0"
set -ag status-style "fg=colour7"

set -g window-status-current-format "#[fg=colour15]    #W"
set -g window-status-format "#[fg=colour8]    #W"

set -g status-left-length 100
set -g status-left  "#[fg=colour8]time #[fg=colour15]#(date +"%H:%M")   "
set -ag status-left "#[fg=colour8]date #[fg=colour15]#(date.sh)  "
set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/bin/bat -q)   "
set -ag status-left "#[fg=colour8]#(~/bin/np.sh -a) #[fg=colour15]#(~/bin/np.sh -t)"

run-shell ~/leet/tmux-resurrect/resurrect.tmux