New split for workstation

This commit is contained in:
Jeremy Gardais 2022-12-12 09:51:43 +01:00
parent 582d13be33
commit aeff9f0396
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 32 additions and 1 deletions

30
splitWORKSTATION Normal file
View File

@ -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

View File

@ -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' if 'command -v cmatrix' 'set -g lock-command "cmatrix -s && physlock"' 'set -g lock-command physlock'
# Initialize sessions # 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 V source-file ~/.tmux/split101010\; display-message "tmux split for 101010"
bind H source-file ~/.tmux/splitHP\; display-message "tmux split for HP" bind H source-file ~/.tmux/splitHP\; display-message "tmux split for HP"

View File

@ -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 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel 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"
### }}} ### }}}