This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/common/tmux/conf

69 lines
2.1 KiB
Plaintext
Raw Normal View History

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
bind-key T source-file "$HOME/.tmux.conf" \; display-message "Reloaded $HOME/.tmux.conf"
bind-key O display-message "#(~/.config/lytedev-dotfiles/bin/tmux-save-buffer #S)"
2019-08-13 16:18:27 -05:00
bind-key H set -s status
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
bind s run "tmux split-window -l 12 'sh -c ~/.config/lytedev-dotfiles/bin/tmuxswitcher'"
2018-06-05 11:05:20 -05: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"
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
set -g status-bg colour0
set -g status-fg colour8
set -g status-interval 5
set -g status-left-length 50
set -g status-left "#h:#S.#W"
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
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 \;\
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
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
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