shithub: rc

Download patch

ref: 3e54fc66a088c9b8dd478a70734e07ca6725daba
parent: c894944363451d60c1e0a8f5e55f3b050846bfd7
author: qwx <[email protected]>
date: Thu Mar 3 02:11:22 EST 2022

K: use k

--- a/bin/K
+++ b/bin/K
@@ -1,12 +1,11 @@
 #!/bin/rc
-if(! test -d $home/lib/work){
+if(! test -d /bin/work){
 	echo no work files
 	exit 'no work nor worry'
 }
-. /tmp/sizes
-for(i in $home/lib/work/*){
-	window -hide -r $briorect $i
-	sleep 2
-	last=`{cd /dev/wsys; ls | sort -n | tail -1}
-	echo -n `{basename $i} >/dev/wsys/$last/label
-}
+w=(music proj monitoring social)
+if(! ~ $#* 0)
+	w=$*
+. /tmp/sizes.$sysname
+for(i in /bin/work/^$w)
+	k $i