shithub: rc

Download patch

ref: 704d89038981e5a7fd1b75ca0d76071c6c7bd82f
parent: 7fd1655df9afc31dd60db92ebd81b3f479e7d865
author: qwx <qwx@sciops.net>
date: Wed Aug 24 21:43:18 EDT 2022

add Riow: riostart script for riow+bar, no longer a function

--- /dev/null
+++ b/bin/Riow
@@ -1,0 +1,24 @@
+#!/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