giving the home PC config a bit of TLC

This commit is contained in:
2024-04-08 19:11:39 -06:00
parent e34b8c3e05
commit 9e0a7f3251
45 changed files with 1439 additions and 431 deletions

View File

@ -1,11 +1,12 @@
#!/bin/zsh
tmux new -d -s apps -n 'foreman' 'htop' \; \
split-window -d -t apps:foreman "while true; do clear; ${0:a:h}/apps; echo 'Keeping apps fresh...'; sleep 30; done" \
split-window -d -t apps:foreman "clear; echo 'Keeping apps fresh...'; while true; do sleep 30; done" \
2>/dev/null
for APP in $(ls ${0:a:h} | grep -v 'apps')
do
echo "looking for $APP"
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
done