all repos — dotfiles @ old

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 "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
56set-window-option -g allow-rename off
57
58set -g pane-border-style fg=colour11
59set -g pane-active-border-style fg=colour8
60
61set -g status-justify right
62set -g status-right ""
63set -g status-left ""
64set -g status-style "bg=colour0"
65set -ag status-style "fg=colour7"
66
67set -g window-status-current-format "#[fg=colour15]    #W"
68set -g window-status-format "#[fg=colour8]    #W"
69
70set -g @resurrect-strategy-nvim 'session'
71set -g status-left-length 100
72if-shell '[[ $HOSTNAME != methi ]]' {
73    set -ag status-left "#[fg=colour8]cwd #[fg=colour15]#(prompt -p #{pane_current_path})   "
74    set -ag status-left "#[fg=colour8]#(prompt -gb #{pane_current_path}) "
75    set -ag status-left "#[fg=colour15]#(prompt -gs #{pane_current_path})"
76}
77
78# dim inactive pane
79set -g window-style 'fg=color8,bg=default'
80set -g window-active-style 'fg=color7,bg=default'
81
82run-shell ~/leet/tmux-resurrect/resurrect.tmux