From ebefc1cc22b87c70740faa29b1abe8df80e6bf16 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 12 Jun 2023 10:31:47 +0200 Subject: [PATCH] Invert auth and apt windows --- splitLAPTOP | 12 +++++++++--- splitWORKSTATION | 8 ++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/splitLAPTOP b/splitLAPTOP index e8ccfd0..3423407 100644 --- a/splitLAPTOP +++ b/splitLAPTOP @@ -29,18 +29,24 @@ if-shell -b 'test -n $TMUX' { # A first window named **mail** # with mutt running in the first pane new-session -A -stoto -nmail 'mutt ; exec ${SHELL}' - ## Split the first window for APT upgrade - split-window -h -p 25 -ttoto:1.1 'sudo apt update ; test $(apt list --upgradable 2>/dev/null | wc --lines) -gt 1 && { sudo aptitude full-upgrade ; sudo aptitude clean } ; exec ${SHELL}' - # + ## Split the first window + split-window -v -p 25 + # Second window named **Xt0p** with btop running new-window -d -nXt0p 'btop ; exec ${SHELL}' + # Third window named **ch4t** with weechat running 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 source-file $HOME/.tmux/splitAUTHENTICATION + # Sixth window for APT upgrade + new-window -nAPT 'sudo apt update ; test $(apt list --upgradable 2>/dev/null | wc --lines) -gt 1 && { sudo aptitude full-upgrade ; sudo aptitude clean } ; logout' + # Default pane should be toto:5.2 #select-pane -ttoto:5.2 } diff --git a/splitWORKSTATION b/splitWORKSTATION index e6d111e..984ebfd 100644 --- a/splitWORKSTATION +++ b/splitWORKSTATION @@ -42,13 +42,13 @@ if-shell -b 'test -n $TMUX' { # with 2 panes in IPR debops project split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops' - # Third window for APT upgrade + # Third window for authentication tools + source-file $HOME/.tmux/splitAUTHENTICATION + + # Fourth window for APT upgrade # Run upgrade only if packages to upgrade new-window -nAPT 'sudo apt update ; test $(apt list --upgradable 2>/dev/null | wc --lines) -gt 1 && { sudo aptitude full-upgrade ; sudo aptitude clean } ; logout' - # Fourth window for authentication tools - source-file $HOME/.tmux/splitAUTHENTICATION - # Default pane should be jd:4.2 #select-pane -tjd:4.2 }