shithub: rc

ref: d22a9cca4296bbe2087757c13b1c9f761fc4bbba
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
}
𝕊 </dev/kbdtap | riow >/dev/kbdtap |[3] bar