shithub: rc

ref: 17b6f737c690690a6fb1d925bfd6a6ced7a4bda6
dir: /m/

View raw version
#!/bin/rc
# 2026-03-05T23:17:21-05:00
rfork e
mcmd=()
scr=()
h=()
x=()
y=()
scr=(`{cat /dev/draw/new >[2]/dev/null})
h=$scr(12)
switch($h){
case 1504
	x=1504
	y=$h
case 1440
	x=1600
	y=$h
case 1200
	x=1400
	y=$h
case *
	x=1400
	y=$h
}
switch($1){
case m
	shift
	mcmd=(window -dx $x -dy $y /bin/mothra $*)
case *
	mcmd=(window -dx $x -dy $y /bin/netsurf $*)
}
exec $mcmd