ansitest/toptmux4-10.sh

21 lines
591 B
Bash
Raw Normal View History

2023-05-03 10:46:29 -05:00
#!/bin/bash
2023-06-30 14:32:11 -05:00
ff # fix fontsize
2023-05-03 10:46:29 -05:00
useprog=open
2023-06-30 14:32:11 -05:00
[ -e $(which openvt) ] && useprog=openvt
2023-05-03 10:46:29 -05:00
# open 4-pane screen on vt10
setterm -blank 0 2>/dev/null
2023-06-30 14:41:27 -05:00
uset=$(which tmux)
2023-05-03 10:46:29 -05:00
#( TERM=linux $useprog -f -c 10 -s -w -- /usr/bin/tmux -S topscrn410 -c /root/.screenrc-mon1-combined ) &
2023-06-30 14:41:27 -05:00
( TERM=linux $useprog -f -c 10 -s -w -- $uset -S topTM410 tmux new-session \; \
2023-05-03 10:46:29 -05:00
send-keys 'top -d15' C-m \; \
split-window -v \; \
send-keys 'bwm-ng -t 2000' C-m \; \
split-window -h \; \
2023-06-30 14:41:27 -05:00
send-keys 'iostat -k -s -y -z 5' C-m \;
2023-05-03 10:46:29 -05:00
split-window -h \; \
2023-06-30 14:32:11 -05:00
send-keys 'watch -n 61 /home/dave/bin/mon1-df-short' ) &