shithub: rc

ref: 1dce09166370ecf9cc3764fb19c91c651578529e
dir: /bin/riostart/

View raw version
#!/bin/rc
sizes
. /tmp/sizes
window -scroll -r $kprintrect cat /dev/kprint
window -r $catrect games/catclock
window -r $volrect volume
window -r $statrect stats -lmsedz
window -r $duckrect duck
# for fuck's sake
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 1
window -scroll -r $cmdrect 'label cmd; rc'