dotfiles/.tmux.conf

97 lines
3.1 KiB
Text
Raw Permalink Normal View History

2016-10-10 16:23:16 +02:00
set -g prefix ^o
set -g base-index 1
set -g display-panes-time 3000
set -s escape-time 10
2020-09-27 13:56:54 +02:00
set -g status on
2018-01-12 14:04:53 +01:00
set -g status-interval 30
set -g focus-events on
set -g allow-passthrough on
2020-09-27 13:56:54 +02:00
setw -g alternate-screen on
setw -g aggressive-resize on
setw -g automatic-rename off
setw -g mode-keys vi
set-option -g mouse on
2016-10-10 16:23:16 +02:00
# clipboard
set -g set-clipboard on
bind-key ] paste-buffer -p
set-environment -g "SSH_AUTH_SOCK" "$XDG_RUNTIME_DIR/gcr/ssh"
2024-03-25 22:57:04 +01:00
set -g update-environment "BUILD_COMMAND GOPACKAGESDRIVER SSH_AUTH_SOCK SSH_CONNECTION"
#set -g default-command "$SHELL"
2022-01-12 15:59:04 +01:00
set -g history-limit 10000
2024-03-08 19:52:21 +01:00
#
2022-09-30 09:50:02 +02:00
set -g default-terminal "wezterm"
2024-03-25 22:57:04 +01:00
set -ga terminal-features '*:clipboard:ccolor:hyperlinks:osc7:overline:sixel:strikethrough:title:usstyle:RGB'
2024-05-13 09:30:04 +02:00
set -ga terminal-overrides ',wezterm:cnorm=\E[?12h\E[?25h'
2016-10-10 16:23:16 +02:00
# Key bindings
2024-03-08 19:52:21 +01:00
bind -n M-Tab if-shell 'test #{window_panes} -gt 1' 'last-pane' 'last-window'
bind -n M-h select-pane -L
bind -n M-l select-pane -R
2018-01-12 14:04:53 +01:00
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
# bind -n M-j select-pane -U
# bind -n M-k select-pane -D
bind -T copy-mode-vi M-k send-keys -X cursor-up \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
bind -T copy-mode-vi M-j send-keys -X cursor-down \; send-keys -X next-prompt -o \; send-keys -X cursor-up
bind -n M-k copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
bind -n M-j copy-mode \; send-keys -X previous-prompt -o \; send-keys -X cursor-up
2018-01-12 14:04:53 +01:00
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-1 select-window -t 42
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
2019-01-01 19:48:52 +01:00
bind -n M-m send-keys -t 9 q C-u "clear; tmux clear-history -t 9" C-m C-p C-p C-p C-m
2021-12-20 12:09:20 +01:00
bind C-o send-keys C-o
2018-01-12 14:04:53 +01:00
bind r source-file ~/.tmux.conf
2016-10-10 16:23:16 +02:00
bind -n C-Right next-window
bind -n C-Left previous-window
bind C-s set-option -g status
bind K confirm kill-server
2018-01-03 08:47:21 +01:00
bind C-k clear-history
2019-07-04 17:15:47 +02:00
bind -n C-l send-keys C-l \; clear-history
2020-04-22 08:30:34 +02:00
bind-key -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 1 scroll-up
bind-key -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 1 scroll-down
2021-03-31 11:02:29 +02:00
bind-key / copy-mode \; send-key ?
bind-key P 'capture-pane' \; capture-pane -S - \; save-buffer /tmp/tmux \; delete-buffer
bind-key -n C-\\ copy-mode \; send -X search-backward " % "\; send -X search-again
2020-04-22 08:30:34 +02:00
2020-09-27 16:38:35 +02:00
setw -g window-status-format ""
2020-09-28 23:16:07 +02:00
setw -g window-status-current-format ""
2020-09-27 16:38:35 +02:00
setw -g window-status-separator ""
2023-07-02 12:30:22 +02:00
set -g status-style "bg=#444444,fg=#dddddd,italics"
2024-05-12 11:25:35 +02:00
set -g popup-border-style "fg=#77fecc"
2024-03-08 19:52:21 +01:00
set -g pane-border-style "fg=#334455"
set -g pane-active-border-style "fg=#334455"
2023-07-02 12:30:22 +02:00
set -g status-position bottom
2020-09-28 23:16:07 +02:00
set -g status-left-length 0
2020-09-29 00:18:38 +02:00
set -g status-right-length 0
2022-09-10 10:59:07 +02:00
set -g status-left '[#I] #{pane_current_path}'
set -g status-right '%F | %R'
2022-09-12 09:53:07 +02:00
set -g status off
2020-09-27 16:38:35 +02:00
set -g set-titles on
2020-09-28 23:39:34 +02:00
set -g set-titles-string "#H - #T"
2016-10-10 16:23:16 +02:00
2023-07-30 21:18:43 +02:00
new -s0 -n 1
new-window -n 2
new-window -n 3
new-window -n 4
new-window -n 5
new-window -n 6
new-window -n 7
new-window -n 8
new-window -n 9
new-window -n 0
2020-10-14 11:17:59 +02:00
2016-10-10 16:23:16 +02:00
# vim:set ft=tmux: