shithub: rc

ref: 4768009eb3dcc311510ac107b3d6b3cb7d863de1
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 -hide /bin/themeset
# 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 0.1
window -scroll -r $cmdrect 'label cmd; rc'