shithub: ninethings

Download patch

ref: a98310a4b186bcdc1e2e3b6176249865277e8a3d
parent: 7fae544be21b3bdb4ac0b710556bc6099f8d8bfa
author: Aaron Bieber <aaron@bolddaemon.com>
date: Tue Jul 30 14:56:41 EDT 2024

add 9ambar to riostart

--- a/rc/riostart.rc
+++ b/rc/riostart.rc
@@ -1,16 +1,20 @@
 #!/bin/rc
 
+fn 9ambar {
+	sed -u 's/$/ | < | P | >/g' \
+	| bar \
+	| awk -v 'c=plumb -d audio ''key ' '
+		/⏮/{system(c"<''")}
+		/⏯/{system(c"p''")}
+		/⏭/{system(c">''")}
+		' >[2]/dev/null
+}
+
 if(test -e $home/lib/windows){
 	. $home/lib/windows
 }
-#window 0,0,161,500 stats -lmiscez
-#window -r 0 504 161 817 winwatch -e '^(winwatch|stats|faces|bar|auth/fgui|fgui)'
-#window 170,9,757,758 sam
 
 if(~ $machine 'imx8')
-	reform/shortcuts </dev/kbdtap >/dev/kbdtap &
-
-#window -hide auth/fgui
-#window bar
-
-#~ $#console 0 || window -hide -scroll console
+	</dev/kbdtap reform/shortcuts | riow >/dev/kbdtap |[3] 9ambar &
+if not
+	</dev/kbdtap riow >/dev/kbdtap |[3] 9ambar &