diff --git a/scwrypts/ssh/omni/tmux.conf b/scwrypts/ssh/omni/tmux.conf index 60a3e4f..c6bcc76 100644 --- a/scwrypts/ssh/omni/tmux.conf +++ b/scwrypts/ssh/omni/tmux.conf @@ -1,6 +1,33 @@ -source ~/.config/tmux/tmux.conf +# config (mostly inherited from ../../../config/tmux.conf) +set -g default-terminal "tmux-256color" +set -g mouse off +set -sg escape-time 0 +set-option -g default-shell /bin/zsh +set-option -gw xterm-keys on +set-window-option -g mode-keys vi +set-window-option -g status-keys vi +setw -gq utf8 on +set -g status-style fg=brightmagenta,bg=black +set -g window-status-current-style fg=black,bg=brightmagenta +set -g status-right "omni host : #(hostnamectl --static) | #(cat /sys/class/power_supply/BAT0/capacity)% " + +# navigate between hosts with ALT+window-number +set -g base-index 1 + +bind-key -n M-1 select-window -t 1 +bind-key -n M-2 select-window -t 2 +bind-key -n M-3 select-window -t 3 +bind-key -n M-4 select-window -t 4 +bind-key -n M-5 select-window -t 5 +bind-key -n M-6 select-window -t 6 +bind-key -n M-7 select-window -t 7 +bind-key -n M-8 select-window -t 8 +bind-key -n M-9 select-window -t 9 +bind-key -n M-0 select-window -t 10 + # window / tile navigation settings from $DOTWRYN/config/tmux.conf # but default to nested session rather than host + bind -n M-h send-keys C-b Left bind -n M-H select-pane -L bind -n M-j send-keys C-b Down @@ -20,24 +47,18 @@ bind -n M-Right send-keys C-b C-Right bind -n M-S-Right resize-pane -R 2 bind-key -n M-Tab send-keys C-b n -bind-key -n M-n next-window bind-key -n M-BTab send-keys C-b p -bind-key -n M-p previous-window -bind-key -n M-c new-window bind-key -n M-Enter send-keys C-b c bind-key -n M-v send-keys M-v -bind-key -n M-V split-window -v bind-key -n M-b send-keys M-b -bind-key -n M-B split-window -h bind-key -n M-q send-keys M-q -bind-key -n M-Q kill-session bind-key -n M-z send-keys M-z -bind-key -n M-Z resize-pane -Z - bind-key -n M-w send-keys C-M-w +bind-key -n M-Q kill-session + unbind-key C-b bind-key C-b send-prefix set-option -g prefix C-s @@ -45,16 +66,3 @@ set-option -g prefix C-s # force reload now bind-key -n M-R send-keys -t omni-manager ENTER -set -g status-right "omni host : #(hostnamectl --static) | #(cat /sys/class/power_supply/BAT0/capacity)% " - -set -g base-index 1 - -bind-key -n M-1 select-window -t 1 -bind-key -n M-2 select-window -t 2 -bind-key -n M-3 select-window -t 3 -bind-key -n M-4 select-window -t 4 -bind-key -n M-5 select-window -t 5 -bind-key -n M-6 select-window -t 6 -bind-key -n M-7 select-window -t 7 -bind-key -n M-8 select-window -t 8 -bind-key -n M-9 select-window -t 9