ref: b625d97c5a304c092faf06aada5c9b079d8a6a11
parent: 8bcccc38bdfa555a398d2fc8eea659df824f6d08
author: qwx <qwx@sciops.net>
date: Sun Apr 24 21:27:52 EDT 2022
riostart: add sbar interaction from bar(1)
--- a/bin/riostart
+++ b/bin/riostart
@@ -10,10 +10,12 @@
if not
window -r $statrect stats -lmsez
window -r $riowrect 'label riow;
+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''''")}