shithub: rc

Download patch

ref: 18169a203e0505ecc1006f388eec103fd0b59d76
parent: aa8e2151ec8e8542b126e1195fc76d7c3c7bfc7d
author: qwx <qwx@sciops.net>
date: Thu Feb 13 21:49:17 EST 2025

wl: add -z to disable scaling

--- a/bin/wl
+++ b/bin/wl
@@ -3,7 +3,12 @@
 
 bind -b . /sys/games/lib/wl3d
 cd $home/lib/wl3d
-if(~ $1 -R){
+
+r=()
+if(~ $1 -z){
+	shift
+}
+if not if(~ $1 -R){
 	r=(-dx $2 -dy $3)
 	shift 2
 }
@@ -21,5 +26,6 @@
 		}'
 	}
 
-echo resize $r >/dev/wctl
+if(! ~ $#r 0)
+	echo resize $r >/dev/wctl
 games/wl3d $*
--