2017-02-07 16:16:45 -06:00
|
|
|
unbind C-b
|
|
|
|
set -g prefix C-s
|
|
|
|
bind-key s send-prefix
|
|
|
|
|
|
|
|
bind-key v split-window -h
|
|
|
|
bind-key b split-window
|
2020-11-17 17:17:03 -06:00
|
|
|
bind-key T source-file "$HOME/.tmux.conf" \; display-message "Reloaded $HOME/.tmux.conf"
|
2021-04-14 14:53:02 -05:00
|
|
|
bind-key O display-message "#(tmux-save-buffer '#S')"
|
2019-08-13 16:18:27 -05:00
|
|
|
bind-key H set -s status
|
2020-11-17 17:17:03 -06:00
|
|
|
bind-key -n C-l select-pane -R
|
|
|
|
bind-key -n C-k select-pane -U
|
|
|
|
bind-key -n C-j select-pane -D
|
|
|
|
bind-key -n C-h select-pane -L
|
2021-04-14 14:53:02 -05:00
|
|
|
bind-key -n C-t new-window
|
|
|
|
bind-key Tab next-window
|
|
|
|
bind-key -n C-Tab next-window
|
|
|
|
bind-key -n C-S-Tab previous-window
|
|
|
|
bind s run "tmux split-window -l 12 'tmuxswitcher'"
|
2018-06-05 11:05:20 -05:00
|
|
|
|
2020-11-17 17:17:03 -06:00
|
|
|
bind M-l source-file "$XDG_CONFIG_HOME/tmux/layouts/dev.tmux"
|
2017-04-23 06:47:00 -05:00
|
|
|
|
2020-11-23 10:03:57 -06:00
|
|
|
set -g default-terminal "kitty"
|
2020-11-17 17:17:03 -06:00
|
|
|
set -g mouse on
|
|
|
|
set -g escape-time 0
|
|
|
|
set -g monitor-activity on
|
|
|
|
set -g visual-bell on
|
|
|
|
set -g bell-action other
|
|
|
|
set -g mode-keys vi
|
|
|
|
set -g history-limit 102400000
|
|
|
|
set -g status on
|
2020-01-20 09:12:52 -06:00
|
|
|
set -g status-position bottom
|
2018-04-06 17:28:31 -05:00
|
|
|
set -g status-bg colour0
|
|
|
|
set -g status-fg colour8
|
2018-06-06 15:55:34 -05:00
|
|
|
set -g status-interval 5
|
2020-11-20 15:27:02 -06:00
|
|
|
set -g status-left-length 50
|
2021-03-22 10:47:23 -05:00
|
|
|
set -g window-status-style "fg=colour8 bg=colour0"
|
|
|
|
set -g window-status-current-style "fg=colour8 bg=colour0"
|
|
|
|
set -g window-status-format " #I"
|
|
|
|
set -g window-status-separator ""
|
|
|
|
set -g window-status-current-format " #I"
|
|
|
|
set -g status-left "#h:#S #I"
|
2020-11-20 15:27:02 -06:00
|
|
|
set -g status-right-length 280
|
|
|
|
set -g status-right "#(kubeline && printf ' ')#{pane_current_path} #(cd '#{pane_current_path}' && git rev-parse --abbrev-ref --sq HEAD | tr -d \"'\")#{pane_current_command}"
|
2020-03-06 15:44:26 -06:00
|
|
|
set -g message-style "fg=colour7 bg=colour18"
|
2019-11-28 08:22:41 -06:00
|
|
|
set -g pane-active-border-style bg=black,fg=blue
|
|
|
|
set -g pane-border-style bg=black,fg=colour18
|
2019-08-09 10:00:52 -05:00
|
|
|
set -g clock-mode-colour colour8
|
2017-02-07 16:16:45 -06:00
|
|
|
set -g base-index 1
|
|
|
|
set -g pane-base-index 1
|
|
|
|
|
2020-11-17 17:17:03 -06:00
|
|
|
set -g window-status-current-format ""
|
2017-02-07 16:16:45 -06:00
|
|
|
|
|
|
|
# present a menu of urls to open from the visible pane
|
2019-08-09 10:00:52 -05:00
|
|
|
# TODO: fzf-ify this
|
2017-02-07 16:16:45 -06:00
|
|
|
bind-key u capture-pane \;\
|
2018-04-06 17:28:31 -05:00
|
|
|
save-buffer /tmp/tmux-buffer \;\
|
2019-08-09 10:00:52 -05:00
|
|
|
split-window -l 10 "urlscan /tmp/tmux-buffer"
|
2017-02-07 16:16:45 -06:00
|
|
|
|
2020-11-20 15:27:02 -06:00
|
|
|
bind-key -T copy-mode-vi "y" send-keys -X copy-pipe-and-cancel 'wl-copy'
|
|
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'wl-copy'; \
|
2017-04-28 21:43:23 -05:00
|
|
|
|
2020-07-09 17:40:10 -05:00
|
|
|
bind-key K kill-pane
|
2020-11-17 17:17:03 -06:00
|
|
|
bind-key C-S-k kill-window
|
2017-02-07 16:16:45 -06:00
|
|
|
|
2019-08-09 10:00:52 -05:00
|
|
|
# attempt at integrating nested tmux sessions nicely
|
2020-01-20 09:12:52 -06:00
|
|
|
# bind -T root F12 \
|
|
|
|
# set prefix None \;\
|
|
|
|
# set key-table off \;\
|
|
|
|
# set status off \
|
2020-03-06 15:44:26 -06:00
|
|
|
# if -F "#{pane_in_mode}" "send-keys -X cancel" \;\
|
2020-01-20 09:12:52 -06:00
|
|
|
# refresh-client -S \;\
|
|
|
|
|
|
|
|
# bind -T off F12 \
|
|
|
|
# set -u prefix \;\
|
|
|
|
# set -u key-table \;\
|
|
|
|
# set status on \;\
|
|
|
|
# refresh-client -S
|