shithub: rc

ref: 911fbe692369fd1b28b8bd7df78d09ab348caf9f
dir: /bin/Riow/

View raw version
#!/bin/rc
rfork en
fn ⑨{
	if(test -f /srv/bar)
		window 'echo -n >/dev/snarf; hold /dev/snarf && cat /dev/snarf >>/srv/bar'
}
fn bar{
	sed -u 's/$/│⏪│⏯│⏩│⑨│⏵│⏸│⏭│⏶│⏷/g' \
	| /bin/bar -s '│' \
	| awk '
		/⑨/{system("⑨")}
		# zuke
		/⏪/{system("plumb -d audio ''key <''")}
		/⏯/{system("plumb -d audio ''key p''")}
		/⏩/{system("plumb -d audio ''key >''")}
		# shp
		/⏵/{system("Sta")}
		/⏸/{system("Sto")}
		/⏭/{system("Fw")}
		/⏶/{system("v+")}
		/⏷/{system("v-")}
	' >[2]/dev/null
}
riow </dev/kbdtap >/dev/kbdtap |[3] bar