2016-10-10 16:23:16 +02:00
|
|
|
set -g prefix ^o
|
|
|
|
|
|
|
|
set -g base-index 1
|
|
|
|
set -g display-panes-time 3000
|
2019-10-29 14:16:27 +01:00
|
|
|
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
|
2022-02-11 09:36:03 +01:00
|
|
|
set -g focus-events 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
|
|
|
|
2019-10-29 14:16:27 +01:00
|
|
|
# clipboard
|
|
|
|
set -g set-clipboard on
|
|
|
|
bind-key ] paste-buffer -p
|
|
|
|
|
2020-09-27 13:56:54 +02:00
|
|
|
set -g update-environment "XAUTHORITY DISPLAY WINDOWID SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION"
|
2017-06-28 09:43:51 +02:00
|
|
|
set -g default-command zsh
|
2022-01-12 15:59:04 +01:00
|
|
|
set -g history-limit 10000
|
2020-10-15 10:08:47 +02:00
|
|
|
|
2022-06-28 15:00:37 +02:00
|
|
|
set -g default-terminal "alacritty"
|
|
|
|
set -ag terminal-overrides ",alacritty:RGB"
|
2022-02-11 09:36:03 +01:00
|
|
|
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # Underline color
|
2016-10-10 16:23:16 +02:00
|
|
|
|
|
|
|
# Key bindings
|
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-Up select-pane -U
|
|
|
|
bind -n M-Down select-pane -D
|
2020-09-05 11:16:23 +02:00
|
|
|
# bind -n M-Tab last-pane
|
2016-10-10 16:23:16 +02:00
|
|
|
bind -n M-1 select-window -t 1
|
|
|
|
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
|
2016-10-10 16:23:16 +02:00
|
|
|
bind -n M-` last-window
|
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
|
2022-07-27 15:54:31 +02:00
|
|
|
bind -n M-g display-popup -h '90%' -w '90%' -b rounded -d '#{pane_current_path}' -E "gitui"
|
2022-07-28 11:12:31 +02:00
|
|
|
bind -n M-e display-popup -h '60%' -w '80%' -b rounded -d '#{pane_current_path}' -E "~/bin/tmux-edit-helper"
|
2022-07-28 10:55:15 +02:00
|
|
|
bind -n M-m display-popup -h '90%' -w '90%' -b rounded -d '#{pane_current_path}' -E "~/bin/tmux-build-helper"
|
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 ""
|
2022-02-17 17:51:06 +01:00
|
|
|
set -g status-style "bg=#313131,fg=#919191"
|
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-02-17 17:51:06 +01:00
|
|
|
set -g status-left '#{?#{==:#I,1},#[bg=#515151]#[fg=#a1a1a1] #[bg=#515151]#[fg=#d1d1d1] #T #[fg=#515151]#[bg=#313131]🭬,#[bg=#515151,fg=#c1c1c1] #I#[fg=#313131]▕#[bg=#313131,fg=#cccccc] #{=|145|…:pane_current_path}}'
|
|
|
|
set -g status-right '#{?#{==:#I,1},,#[fg=#07f7f7]#{@starship}#[fg=#313131]▕#[fg=#f7f7f7]#(~/go/bin/gitmux -cfg ~/.config/gitmux/gitmux.yaml "#{pane_current_path}")}#[bg=#4e342e fg=#e0a74d] #(date +%%H:%%M) '
|
2020-09-28 23:16:07 +02:00
|
|
|
|
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
|
|
|
|
2021-04-15 14:40:05 +02:00
|
|
|
# new -s 0 -n 1
|
2022-07-27 16:26:55 +02:00
|
|
|
new -s0 -n 1 nvim --listen $XDG_RUNTIME_DIR/nvim.sock
|
|
|
|
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:
|