shithub: rc

ref: 70688168ffb7325916c46c3981b4e49fa38945cf
dir: /bin/riostart/

View raw version
#!/bin/rc
sizes
. /tmp/sizes.$sysname
window -scroll -r $kprintrect cat /dev/kprint
window -r $catrect games/catclock
window -r $volrect volume
window -r $statrect stats -lmsedz
window -r $riowrect 'label riow;
fn bar{
	sed -u ''s/$/│⏵│⏸│⏭│⏶│⏷/g'' \
	| /bin/bar -s ''│'' \
	| awk ''
		/⏵/{system("Sta")}
		/⏸/{system("Sto")}
		/⏭/{system("Fw")}
		/⏶/{system("v+")}
		/⏷/{system("v-")}
	'' >[2]/dev/null
}; riow'
sleep 0.3
window -scroll -r $cmdrect 'label cmd; rc'