shithub: rc

ref: f3afdf563f784c0a5703496f48c1a72dff4617f4
dir: /getwsys/

View raw version
#!/bin/rc
# waits for you to click another window, then reports its wsys dir
read -c 144 /dev/wctl >/dev/null
for(i in /dev/wsys/*/wctl)
	if(~ `{read -c 72 $i} *' cur'*)
		echo $i | sed 's/wctl$//'
echo current > /dev/wctl