2019-05-23 00:56:20 +02:00
|
|
|
set -g prefix C-g
|
2020-08-19 15:15:57 +02:00
|
|
|
setw -g monitor-activity off
|
2019-05-23 00:56:20 +02:00
|
|
|
# needed for e.g. mutt
|
|
|
|
bind C-g send-prefix
|
|
|
|
|
2020-07-21 11:03:45 +02:00
|
|
|
#set -g set-titles on
|
2019-05-23 00:56:20 +02:00
|
|
|
set -g status-position top
|
|
|
|
set -g status-keys vi
|
|
|
|
set -g mode-keys vi
|
|
|
|
set -g base-index 1
|
|
|
|
set -g pane-base-index 1
|
|
|
|
set -g focus-events on
|
2020-07-21 11:03:45 +02:00
|
|
|
#set -g allow-rename off
|
|
|
|
#set-option -g allow-rename off
|
|
|
|
setw -g automatic-rename off
|
|
|
|
set -g automatic-rename off
|
|
|
|
setw -g allow-rename off
|
|
|
|
set -g allow-rename off
|
|
|
|
|
2019-05-23 00:56:20 +02:00
|
|
|
|
2020-08-19 16:21:33 +02:00
|
|
|
set history-file ~/.tmux_ssh/.history
|
2019-05-23 00:56:20 +02:00
|
|
|
set -g history-limit 100000
|
|
|
|
set -s set-clipboard on
|
|
|
|
set -g display-time 3000
|
|
|
|
set -g display-panes-time 3000
|
|
|
|
|
2020-07-21 11:03:45 +02:00
|
|
|
#set -g pane-border-status top
|
2019-05-23 00:56:20 +02:00
|
|
|
|
|
|
|
setw -g window-status-current-style bg=colour240,fg=colour250
|
|
|
|
setw -g window-status-separator "|"
|
|
|
|
set -g status-bg colour235
|
|
|
|
set -g status-fg colour245
|
2020-07-27 03:00:51 +02:00
|
|
|
setw -g pane-border-style fg=colour235
|
|
|
|
setw -g pane-active-border-style fg=colour240
|
2019-05-23 00:56:20 +02:00
|
|
|
|
2020-07-21 11:03:45 +02:00
|
|
|
set -g window-status-format " #I #{p15:pane_title} #{p2:window_flags}"
|
|
|
|
setw -g automatic-rename-format " #I #{p15:pane_title} #{p2:window_flags}"
|
|
|
|
set -g window-status-current-format " #I #{p15:pane_title} #{p2:window_flags}"
|
2019-05-23 00:56:20 +02:00
|
|
|
set -g pane-border-format " #P: #{s/ //:pane_title} "
|
|
|
|
|
|
|
|
set -g renumber-windows on
|
|
|
|
set -g status-right-length 0
|
|
|
|
##############################################################
|
|
|
|
|
|
|
|
# I prefer not to have a status for my tabbed term
|
2020-08-19 15:15:57 +02:00
|
|
|
set -g status-right '| #(test `apm -b` -lt 4 && echo "`apm -l`%% `test $(apm -m) != unknown && printf "%%02dh %%02dm \\n" "$(($(apm -m)/60)) $(($(apm -m)%%60))"`| ")%H:%M'
|
2019-05-23 00:56:20 +02:00
|
|
|
set -g status-right-length 0
|
|
|
|
set -g status-left-length 0
|
|
|
|
set -g status-left ""
|
|
|
|
|
|
|
|
# some settings for "navigation"
|
2020-07-21 11:03:45 +02:00
|
|
|
bind -n C-PageUp copy-mode
|
2019-05-23 00:56:20 +02:00
|
|
|
unbind -n C-Left
|
|
|
|
unbind -n C-Right
|
|
|
|
bind -n C-Left select-window -t :-
|
|
|
|
bind -n C-Right select-window -t :+
|
|
|
|
|
|
|
|
# I prefer a tiled layout and easy joining of current active pane via windows'
|
|
|
|
# index
|
|
|
|
bind F1 join-pane -s 1.\; select-layout tiled
|
|
|
|
bind F2 join-pane -s 2.\; select-layout tiled
|
|
|
|
bind F3 join-pane -s 3.\; select-layout tiled
|
|
|
|
bind F4 join-pane -s 4.\; select-layout tiled
|
|
|
|
bind F5 join-pane -s 5.\; select-layout tiled
|
|
|
|
bind F6 join-pane -s 6.\; select-layout tiled
|
|
|
|
bind F7 join-pane -s 7.\; select-layout tiled
|
|
|
|
bind F8 join-pane -s 8.\; select-layout tiled
|
|
|
|
bind F9 join-pane -s 9.\; select-layout tiled
|
2020-07-21 11:03:45 +02:00
|
|
|
|
|
|
|
|
|
|
|
bind -n S-Down select-pane -D
|
|
|
|
bind -n S-Up select-pane -U
|
|
|
|
bind -n S-Left select-pane -L
|
|
|
|
bind -n S-Right select-pane -R
|
|
|
|
|
2020-07-27 03:00:51 +02:00
|
|
|
bind-key -n C-S-Left "swap-window -t -1; select-window -t -1"
|
2020-07-21 11:03:45 +02:00
|
|
|
bind-key -n C-S-Right "swap-window -t +1; select-window -t +1"
|
|
|
|
|
|
|
|
bind p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
2020-07-27 03:00:51 +02:00
|
|
|
bind C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
|
2020-07-21 11:03:45 +02:00
|
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|