shithub: rc

Download patch

ref: 72c53fd6a77e36b6781302c14b6678db1e837905
parent: 6ad83e9fe0b661c353ca264fd32f451937697a2b
author: qwx <qwx@sciops.net>
date: Mon Aug 30 12:14:31 EDT 2021

riostart: use bar(1) better, but why why why

--- a/bin/riostart
+++ b/bin/riostart
@@ -6,6 +6,18 @@
 window -r $volrect volume
 window -r $statrect stats -lmsedz
 window -r $duckrect duck
-window -r $riowrect 'label riow; riow </srv/riogkbd*'
+# for fuck's sake
+window -r $riowrect 'label riow;
+fn bar{
+	sed -u ''s/$/│⏵│⏸│⏭│⏶│⏷/g'' \
+	| /bin/bar -s ''│'' \
+	| awk ''
+		/⏵/{system("Sta")}
+		/⏸/{system("Sto")}
+		/⏭/{system("Fw")}
+		/⏶/{system("v+")}
+		/⏷/{system("v-")}
+	'' >[2]/dev/null
+}; riow'
 sleep 1
 window -scroll -r $cmdrect 'label cmd; rc'