|
| 1 | +set -g default-terminal "st-256color" |
| 2 | +set -sg escape-time 0 |
| 3 | +#set default-command '/home/sjoseph/bin/zsh' |
| 4 | +#set-option -g status-right '#[fg=green]#(date +"%h %a %d %H:%M") #[fg=white]#(whoami)@#h' |
| 5 | +setw -g aggressive-resize off |
| 6 | +setw -g monitor-content off |
| 7 | +set -g visual-activity off |
| 8 | +#set-option -g mouse-select-pane on |
| 9 | + |
| 10 | +#### COLOUR |
| 11 | +# default statusbar colors |
| 12 | +set-option -g status-bg colour235 #base02 |
| 13 | +set-option -g status-fg colour136 #yellow |
| 14 | +set-option -g status-attr default |
| 15 | + |
| 16 | +# default window title colors |
| 17 | +set-window-option -g window-status-fg colour244 |
| 18 | +set-window-option -g window-status-bg default |
| 19 | +set-window-option -g window-status-attr dim |
| 20 | + |
| 21 | +# active window title colors |
| 22 | +set-window-option -g window-status-current-fg colour7 #orange |
| 23 | +set-window-option -g window-status-current-bg colour27 |
| 24 | +set-window-option -g window-status-current-attr bright |
| 25 | + |
| 26 | +# pane border |
| 27 | +set-option -g pane-border-fg colour235 #base02 |
| 28 | +set-option -g pane-active-border-fg colour240 #base01 |
| 29 | + |
| 30 | +# message text |
| 31 | +set-option -g message-bg colour235 #base02 |
| 32 | +set-option -g message-fg colour166 #orange |
| 33 | + |
| 34 | +# pane number display |
| 35 | +set-option -g display-panes-active-colour colour33 #blue |
| 36 | +set-option -g display-panes-colour colour166 #orange |
| 37 | + |
| 38 | +# clock |
| 39 | +set-window-option -g clock-mode-colour colour64 #green |
| 40 | + |
| 41 | +#window with alert |
| 42 | +set-window-option -g window-status-activity-fg colour234 #orange |
| 43 | +set-window-option -g window-status-activity-bg colour60 |
| 44 | +set-window-option -g window-status-activity-attr dim |
| 45 | + |
| 46 | + |
| 47 | +#set -g status-left '#[fg=colour235,bg=colour252,bold] ⎈ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀' |
| 48 | +#set -g status-left '#[fg=colour235,bg=colour252,bold] ⎈ #S #[fg=colour238,bg=colour234,nobold]' |
| 49 | +#set -g status-right '#(~/.tmux/status.sh)' |
| 50 | +#set -g status-right '$TMUX_STATUS_RIGHT' |
| 51 | +#set -g status-left '$TMUX_STATUS_LEFT' |
| 52 | +#set -g status-left '#(echo \$TMUX_STATUS_LEFT)' |
| 53 | +#set -g status-right '#(echo \$TMUX_STATUS_RIGHT)' |
| 54 | +set -g window-status-format "#[fg=white,bg=colour234] #I #W " |
| 55 | +#set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀" |
| 56 | +set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]" |
| 57 | +bind b split-window "tmux lsw | percol --initial-index $(tmux lsw | awk '/active.$/ {print NR-1}') | cut -d':' -f 1 | xargs tmux select-window -t" |
| 58 | +bind B split-window "tmux ls | percol --initial-index $(tmux ls | awk '/attached.$/ {print NR-1}') | cut -d':' -f 1 | xargs tmux switch-client -t" |
| 59 | + |
| 60 | +bind-key 0 select-window -T -t :0 |
| 61 | +bind-key 1 select-window -T -t :1 |
| 62 | +bind-key 2 select-window -T -t :2 |
| 63 | +bind-key 3 select-window -T -t :3 |
| 64 | +bind-key 4 select-window -T -t :4 |
| 65 | +bind-key 5 select-window -T -t :5 |
| 66 | +bind-key 6 select-window -T -t :6 |
| 67 | +bind-key 7 select-window -T -t :7 |
| 68 | +bind-key 8 select-window -T -t :8 |
| 69 | +bind-key 9 select-window -T -t :9 |
| 70 | +bind-key S-r command-prompt -I "rename-window " |
| 71 | +bind-key l lock-session |
| 72 | +bind-key y setw synchronize-panes |
| 73 | + |
| 74 | +bind-key | split-window -h |
| 75 | +bind-key \ split-window -h |
| 76 | +bind-key - split-window -v |
| 77 | +bind-key x kill-pane |
| 78 | +bind-key X kill-window |
| 79 | +bind-key q confirm-before kill-session |
| 80 | +bind-key Q confirm-before kill-server |
| 81 | +bind-key , previous-window # < |
| 82 | +bind-key . next-window # > |
| 83 | +bind-key < swap-window -t :- |
| 84 | +bind-key > swap-window -t :+ |
| 85 | + |
| 86 | +bind m detach-client -a |
| 87 | + |
| 88 | +set-window-option -g xterm-keys on |
| 89 | +#set-option -g lock-command vlock |
| 90 | +set-option -g status-interval 0 |
| 91 | +set-option -g update-environment -r |
| 92 | +# vim: set ft=tmux: |
0 commit comments