diff --git a/sh/tmux.conf b/sh/tmux.conf new file mode 100644 index 0000000..f76371a --- /dev/null +++ b/sh/tmux.conf @@ -0,0 +1,57 @@ +# ╭──────┬───────╮ +# │ tmux │ setup │ +# ╰──────┴───────╯ + +rwx_tmux_setup() { + rwx_file_write "${HOME}/.tmux.conf" "\ +bind-key r source-file ~/.tmux.conf \\; display-message '↑ .tmux.conf' + +set -g automatic-rename on +set -g automatic-rename-format '' +set -g mouse on +set -g renumber-windows on + +set -g set-titles on +set -g set-titles-string '#(pwd)' + +set -g status-bg black +set -g status-fg gray +set -g status-interval 1 +set -g status-left '' +set -g status-position top +set -g status-right '| #{session_name} | %Y/%m/%d %H:%M:%S' + +set -g window-status-activity-style bg=black,fg=red +set -g window-status-separator ' | ' + +set-option -g message-style bg=black,fg=red +set-option -g pane-active-border-style bg=black,fg=green +set-option -g pane-border-style bg=black,fg=gray + +set-option -g prefix C-b +set-option -g prefix2 F12 + +setw -g monitor-activity on +setw -g monitor-silence 0 + +set-window-option -g window-status-current-style bg=black,fg=green +set-window-option -g window-status-style bg=black,fg=gray + +bind -n F6 detach-client + +bind-key -n C-S-Left swap-window -t -1 +bind-key -n C-S-Right swap-window -t +1 + +bind -n F2 new-window +bind -n M-Left previous-window +bind -n M-Right next-window + +bind -n S-Down select-pane -D +bind -n S-Left select-pane -L +bind -n S-Right select-pane -R +bind -n S-Up select-pane -U + +bind-key h split-window -h +bind-key v split-window -v +" +}