From ab504413b886fe1a7d1df27a5b5dbd5cd32953b1 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 12 Dec 2022 15:37:40 +0100 Subject: [PATCH] New window at startup for authentification tools --- splitLAPTOP | 12 +++++++----- splitWORK | 5 ++--- splitWORKSTATION | 12 +++++++----- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/splitLAPTOP b/splitLAPTOP index efdbbfd..d739f4a 100644 --- a/splitLAPTOP +++ b/splitLAPTOP @@ -31,14 +31,16 @@ if-shell '! tmux has-session -t toto' { # Second window named **Xt0p** with btop running new-window -d -nXt0p 'btop ; exec ${SHELL}' # Third window named **ch4t** with weechat running - neww -d -nch4t 'weechat ; exec ${SHELL}' + new-window -d -nch4t 'weechat ; exec ${SHELL}' # Fourth window named **git** in main repos directory new-window -d -ngit -c '/home/jegardai/repos' + # Fifth window for authentication tools + new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}' + split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}' + set-window-option synchronize-panes on - # Default window should be jd:1 - #select-window -t 1 - # Default pane should be jd:1.2 - #select-pane -t 2 + # Default pane should be toto:5.2 + #select-pane -ttoto:5.2 } # If a default session still exists {{{ if-shell -b 'tmux has-session -t 0' { diff --git a/splitWORK b/splitWORK index 327b3d7..19bdabf 100644 --- a/splitWORK +++ b/splitWORK @@ -31,7 +31,6 @@ if-shell '! tmux has-session -t IPR' { # Third window named **Prox7** new-window -d -nProx7 - # Default window should be jd:1 - #select-window -t 1 - # Default pane should be jd:1.1 + # Default pane should be IPR:1.1 + #select-pane -tIPR:1.1 } diff --git a/splitWORKSTATION b/splitWORKSTATION index 9618224..7618c9a 100644 --- a/splitWORKSTATION +++ b/splitWORKSTATION @@ -36,12 +36,14 @@ if-shell '! tmux has-session -t jd' { new-window -d -nIPR -c '/home/jegardai/repos/ipr.debops' # with 2 panes in IPR debops project split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops' - # Third window in home - #new-window -d - # Default window should be jd:1 - #select-window -t 1 - # Default pane should be jd:1.1 + # Third window for authentication tools + new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}' + split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}' + set-window-option synchronize-panes on + + # Default pane should be jd:3.2 + #select-pane -tjd:3.2 } # If a default session still exists {{{ if-shell -b 'tmux has-session -t 0' {