shithub: rc

ref: 227f873058da9b5c099b6fde577d8980bad7364a
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
if(test -f /mnt/acpi/battery)
	window -r $statrect stats -blmsez -T 10
if not
	window -r $statrect stats -lmsez
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'