all repos — dotfiles @ e65e20a60c921ac0aac0549996082a5c61be3b1d

my *nix dotfiles

home/.tmux.conf (view raw)

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