From aeff9f03960d07ea2a86df018c2258e5540909fb Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 12 Dec 2022 09:51:43 +0100 Subject: [PATCH] New split for workstation --- splitWORKSTATION | 30 ++++++++++++++++++++++++++++++ tmux.conf | 2 +- tmux.conf.local | 1 + 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 splitWORKSTATION diff --git a/splitWORKSTATION b/splitWORKSTATION new file mode 100644 index 0000000..176bfb2 --- /dev/null +++ b/splitWORKSTATION @@ -0,0 +1,30 @@ +#### Session -------------------------------------------------------------- +# -sX : numéro de la session +# -nNOM_TERMINAL : nom du terminal +# -d : indique à tmux de ne pas attacher la session et de ne pas prendre les +# nouvelles fenêtres comme une fenêtre courante +# -tX:Y : modifier les paramètres de la fenêtre Y de la session X. !Attention +# la fenêtre doit exister avant de pouvoir modifier ses paramètres! +# monitor-activity : permet de mettre en avant une fenêtre quand son contenu reçoit un événement +# 'exec ${SHELL}' : Allow to keep the pane running after the program exists + +# New session for working station + +# New session with a first window with 2 panes in 42 debops project +new -A -sjd -n42 +splitw -h -t1 -c '/home/jegardai/repos/101010.debops' +select-pane -t 1 +# Second window with 2 panes in IPR debops project +neww -d -nIPR -c '/home/jegardai/repos/ipr.debops' +select-window -t 2 +splitw -h -c '/home/jegardai/repos/ipr.debops' +select-pane -t 1 +# Third window in home +#neww -d -c '/home/jegardai/' + +# Default window: jd:0 +select-window -t 1 +select-pane -t 1 + +# Kill default created session +kill-session -t 0 diff --git a/tmux.conf b/tmux.conf index efcd496..ef288e9 100644 --- a/tmux.conf +++ b/tmux.conf @@ -243,7 +243,7 @@ set -g lock-after-time 1800 if 'command -v cmatrix' 'set -g lock-command "cmatrix -s && physlock"' 'set -g lock-command physlock' # Initialize sessions -bind I source-file ~/.tmux/splitWORK\; display-message "tmux split for Work" +bind I source-file ~/.tmux/splitWORKSTATION\; display-message "tmux split for Work" bind V source-file ~/.tmux/split101010\; display-message "tmux split for 101010" bind H source-file ~/.tmux/splitHP\; display-message "tmux split for HP" diff --git a/tmux.conf.local b/tmux.conf.local index 8ad5517..26db252 100644 --- a/tmux.conf.local +++ b/tmux.conf.local @@ -71,4 +71,5 @@ bind a send-prefix bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel +bind I source-file ~/.tmux/splitWORK\; display-message "tmux split for Work" ### }}}