]> Sergey Matveev's repositories - mmc.git/commitdiff
No need in fully custom tmux configuration
authorSergey Matveev <stargrave@stargrave.org>
Tue, 14 Mar 2023 08:05:12 +0000 (11:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 14 Mar 2023 08:05:12 +0000 (11:05 +0300)
cmd/start
cmd/tmux.conf

index 072509715d6789bb79bc10a6a8890dff946992f0..c68e944d3ae3c538111bfe4647d9da6b19bebe99 100755 (executable)
--- 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
index 99bf3795751e6cf0142b09e2ca2793aea39ca4c6..e25865a871c02ecbdb73405a78c61a8c060ac56f 100644 (file)
@@ -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