shithub: rc

ref: 45617648bc7179ec433ad4c808b0ab93246849ed
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'