From: Sergey Matveev Date: Tue, 14 Mar 2023 08:05:12 +0000 (+0300) Subject: No need in fully custom tmux configuration X-Git-Url: http://www.git.stargrave.org/?p=mmc.git;a=commitdiff_plain;h=4d5077d60d27f075f58626e53d9dddd1a810851a No need in fully custom tmux configuration --- diff --git a/cmd/start b/cmd/start index 0725097..c68e944 100755 --- a/cmd/start +++ b/cmd/start @@ -8,7 +8,8 @@ $TMUX has-session -t mmc 2>/dev/null && exit -e "s#NEWWIN#$cmd/newwin#" \ -e "s#CATFILE#$cmd/catfile#" \ -e "s#DLPANE#$cmd/dlpane#" < "$cmd"/tmux.conf > tmux.conf -$TMUX -f tmux.conf new-session -d -n ROOT -s mmc "while : ; do sleep 1 ; cat debug | tai64n | tai64nlocal ; done" +$TMUX new-session -d -n ROOT -s mmc "while : ; do sleep 1 ; cat debug | tai64n | tai64nlocal ; done" $TMUX split-window -h 'while : ; do sleep 10 ; clear ; cat users/status | spc -e grn,"^online:.*" -e cya,"^away:.*" ; done' $TMUX split-window -v "while : ; do $cmd/mmc/mmc -newwin $cmd/newwin -notify $cmd/notify | tai64n | tai64nlocal ; printf \"\\a\" ; sleep 10 ; done" +$TMUX source-file tmux.conf $TMUX attach-session diff --git a/cmd/tmux.conf b/cmd/tmux.conf index 99bf379..e25865a 100644 --- a/cmd/tmux.conf +++ b/cmd/tmux.conf @@ -1,32 +1,11 @@ -set-option -g mode-keys vi -set-option -g base-index 1 -set-option -g escape-time 1 -set-option -g repeat-time 0 -set-option -g history-limit 20000 -set-option -g renumber-windows on -set-option -g pane-border-indicators both - -set-option -g status-style "bg=black,fg=white" -set-option -g status-left "#S>" -set-option -g status-right "" -set-option -g status-justify centre - -set-window-option -g automatic-rename on set-window-option -g window-status-format "#I:#W#F" -set-window-option -g window-status-style "bg=green fg=black" -set-window-option -g window-status-current-style "bg=red" -set-window-option -g window-status-last-style "bg=cyan" bind-key Q kill-session -bind-key c new-window NEWWIN +bind-key c display-popup -E NEWWIN bind-key d kill-window bind-key S display-popup -E CATFILE bind-key D { capture-pane -t 0 - new-window DLPANE + display-popup -E DLPANE delete-buffer } - -bind-key -n C-PgUp previous-window -bind-key -n C-PgDn next-window -bind-key -n S-PgUp copy-mode -u