💾 Archived View for runjimmyrunrunyoufuckerrun.com › rc › r captured on 2021-12-17 at 13:26:06.

View Raw

More Information

-=-=-=-=-=-=-

#!/bin/rc
# raise a window
rfork e
if(~ $1 '') * = notifications
w = `{walk -dn1,1 /dev/wsys}
for(i in $w)
	if(~ $1 `{cat $i/label}){
		> $i/wctl {
			echo -n unhide >[2]/dev/null
			echo -n current
		}
		exit
	}
for(i in $w)
	if(grep -s $1 $i/label){
		> $i/wctl {
			echo -n unhide >[2]/dev/null
			echo -n current
		}
		exit
	}
echo no window with label matching $1 >[1=2]
exit 'no match'