ref: a00f4fc027bfb747a9975411218e30b348ab3e17
parent: becbfc2fdda3be2ef5e0a3f3806a0c0d3f93e2cb
author: qwx <qwx@sciops.net>
date: Mon Apr 3 11:40:19 EDT 2023
sizes: define basic rects earlier
--- a/bin/sizes
+++ b/bin/sizes
@@ -3,6 +3,8 @@
#screensize=`{file /dev/screen | sed 's/.*size ([^x]+)x([^x]+)/\1 \2/'}
# general placements
+briorect=(0 0 $screensize(1) `{echo $screensize(2) - 16 | pc})
+bsamrect=(0 0 $briorect(3) `{echo $briorect(4) - 16 | pc})
# tentative bar(1) placement, which is determined by riostart policy
barrect=( \
`{echo $bsamrect(1) - 430 | pc} \
@@ -11,8 +13,6 @@
$screensize(4) \
)
-briorect=(0 0 $screensize(1) `{echo $screensize(2) - 16 | pc})
-bsamrect=(0 0 $briorect(3) `{echo $screensize(2) - 56 | pc})
bcmdrect=( \
0 \
`{echo $bsamrect(4) - $bsamrect(4) / 3 | pc} \