shithub: tarico

Download patch

ref: e45b319bd95f0a87e6373731edd3c798d9093232
parent: b0f84dfff2d22507165a2c81e4faa094436ca82c
author: glenda <glenda@cirno>
date: Sat Nov 1 15:06:34 EDT 2025

added -minx to window

--- a/tarico
+++ b/tarico
@@ -53,16 +53,17 @@
 # page -w only resizes to the image, if it's focused (only the first picture
 # would be resized otherwise. bug in page? -
 # try ` for ( i in image1 image2 ) { page -w $i & } '
-
+y=0
 for ( i in $shuffle ) {
   if (~ `{flip} 1) {
-    window -dx 445 -dy 745 'hget '^$url^'/'^$i^' | png -c | rotate -r 180 | page -R'
+    window -minx $y -dx 445 -dy 745 'hget '^$url^'/'^$i^' | png -c | rotate -r 180 | page -R'
     r=r.
   }
   if not { 
-    window -dx 445 -dy 745 'hget '^$url^'/'^$i^' | png -c | page -R'
+    window -minx $y -dx 445 -dy 745 'hget '^$url^'/'^$i^' | png -c | page -R'
     r=()
   }
   caser $r
+y=`{echo $y + 445 | bc}
 }
 
--