all repos — dotfiles @ 44dd260faad218bb05171c28e2af0c03cf73cb05

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
24bind -n M-Up resize-pane -U 5
25bind -n M-Down resize-pane -D 5
26bind -n M-Left resize-pane -L 5
27bind -n M-Right resize-pane -R 5
28
29# window binds
30bind -n C-M-y previous-window
31bind -n C-M-o next-window
32bind-key c split-window -h -c "#{pane_current_path}"
33bind-key v new-window -c "#{pane_current_path}"
34bind-key s choose-session
35bind-key ) swap-window -t +2
36bind-key ( swap-window -t -1
37
38unbind -T copy-mode MouseDragEnd1Pane
39bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
40bind-key -T copy-mode-vi v send-keys -X begin-selection
41bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c "
42bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
43bind P paste-buffer
44
45# pop-up pane to open urls
46bind-key u display-popup -E "firefox -new-tab $(xurls)"
47
48# statusline on top
49set-option -g status-position top
50
51# statusline hide / unhide
52bind -n C-down set -q status off
53bind -n C-up set -q status on
54bind P paste-buffer
55
56bind E command-prompt -p "Command:" \
57         "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \
58         | xargs -I PANE tmux send-keys -t PANE '%1' Enter\""
59
60set-window-option -g allow-rename off
61
62set -g pane-border-style fg=colour11
63set -g pane-active-border-style fg=colour8
64
65set -g status-justify right
66set -g status-right ""
67set -g status-style "bg=colour0"
68set -ag status-style "fg=colour7"
69
70set -g window-status-current-format "#[fg=colour15]    #W"
71set -g window-status-format "#[fg=colour8]    #W"
72
73set -g status-left-length 100
74set -g status-left  "#[fg=colour8]time #[fg=colour15]#(date +"%H:%M")   "
75set -ag status-left "#[fg=colour8]date #[fg=colour15]#(date.sh)  "
76set -ag status-left "#[fg=colour8]bat #[fg=colour15]#(~/bin/bat -q)   "
77set -ag status-left "#[fg=colour8]#(~/bin/np.sh -a) #[fg=colour15]#(~/bin/np.sh -t)"