shithub: rc

Download patch

ref: 9a3e63e59d5e819b3c026fef48aa07081c35f6fd
parent: bdf4bfe2599b518b3a5692c8747064347ade3337
author: qwx <qwx@sciops.net>
date: Sun Feb 4 09:53:42 EST 2024

riostart: change sizes, replace volume(1) with vol(1)

--- a/bin/riostart
+++ b/bin/riostart
@@ -3,13 +3,8 @@
 . /tmp/sizes.$sysname
 window -scroll -r $kprintrect cat /dev/kprint
 window -r $catrect games/catclock
-window -r $volrect volume
+window -r $volrect vol
 #window -r $duckrect mothra
-
-if(test -f /dev/battery)
-	window -r $statrect stats -blmsez -T 10
-if not
-	window -r $statrect stats -lmsez
-
+window -r $statrect stats -lmsez
 window -r $riowrect 'label riow; Riow'
 { sleep 0.5; window -scroll -r $cmdrect 'label cmd; rc' } &
--- a/bin/sizes
+++ b/bin/sizes
@@ -27,16 +27,16 @@
 	296 \
 )
 volrect=( \
-	0 \
-	0 \
-	328 \
-	144 \
+	`{echo $catrect(3) - 4 | pc} \
+ 	0 \
+	768 \
+	114 \
 )
 kprintrect=( \
 	$volrect(1) \
 	`{echo $volrect(4) - 4 | pc} \
 	$volrect(3) \
-	`{echo $catrect(4) / 2 | pc} \
+	`{echo $volrect(4) - 4 + 64 | pc} \
 )
 statrect=( \
 	$volrect(1) \