Invert auth and apt windows
This commit is contained in:
parent
a7cdd2396d
commit
ebefc1cc22
12
splitLAPTOP
12
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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue