background application monitor for tmux
This commit is contained in:
parent
4bd6fcc0c8
commit
f5745aa4d9
11
bin/tmux/bg-apps/apps
Executable file
11
bin/tmux/bg-apps/apps
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/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" \
|
||||||
|
2>/dev/null
|
||||||
|
|
||||||
|
for APP in $(ls ${0:a:h} | grep -v 'apps')
|
||||||
|
do
|
||||||
|
tmux list-windows -t apps: | awk '{print $2;}' | grep -q $APP \
|
||||||
|
|| tmux new-window -dn $APP -t apps: "${0:a:h}/$APP"
|
||||||
|
done
|
8
bin/tmux/bg-apps/midi
Executable file
8
bin/tmux/bg-apps/midi
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/zsh
|
||||||
|
|
||||||
|
cd $HOME/Projects/gizmos/xorg-midi/code
|
||||||
|
source ../env/bin/activate
|
||||||
|
|
||||||
|
./midi-controller
|
||||||
|
|
||||||
|
deactivate
|
Loading…
Reference in New Issue
Block a user