ref: 6c86354713d55ecdb7540ca91df17ae0e0a27068
parent: c82de412ffe0355f4b454d71b42aecd3108effe4
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Mar 29 20:38:48 EDT 2020
fix the piping mess
--- a/riow
+++ b/riow
@@ -119,10 +119,12 @@
scrsize
-echo $curdesktop > /tmp/desktop
-@{tail -f /tmp/desktop | aux/statusmsg -k -w `{echo $screenw-100|bc}^,`{echo $screenh-60|bc}^,$screenw^,$screenh desktop} &
+fn work {
+ echo ' '^$curdesktop
+ while(s=`{read}){
+ handle $s
+ echo ' '^$curdesktop
+ }
+}
-gkbd | while(s=`{read}){
- handle $s
- echo $curdesktop
-} >> /tmp/desktop
+gkbd | work | aux/statusmsg -k -w `{echo $screenw-100|bc}^,`{echo $screenh-60|bc}^,$screenw^,$screenh desktop