shithub: rc

Download patch

ref: 51f925185e61ac7ec2e6807d212334d9747ceb2b
parent: 4e9576c78495cb56cff38d1f3c2e859c8e78e03f
author: qwx <qwx@sciops.net>
date: Fri Apr 22 20:51:25 EDT 2022

sizes: add current placement for bar(1)

--- a/bin/sizes
+++ b/bin/sizes
@@ -2,6 +2,15 @@
 screensize=`{echo $vgasize | sed 's/x/ /g'}
 #screensize=`{file /dev/screen | sed 's/.*size ([^x]+)x([^x]+)/\1 \2/'}
 # general placements
+
+# tentative bar(1) placement, which is determined by riostart policy
+barrect=( \
+	`{echo $bsamrect(1) - 430 | pc -n} \
+	`{echo $bsamrect(2) - 28 | pc -n} \
+	$screensize(3) \
+	$screensize(4) \
+)
+
 briorect=(0 0 $screensize(1) `{echo $screensize(2) - 16 | pc -n})
 bsamrect=(0 32 $briorect(3) $briorect(4))
 bcmdrect=( \
@@ -87,6 +96,7 @@
 
 cat <<! >/tmp/sizes.$sysname
 screensize=($screensize)
+barrect=($barrect)
 briorect=($briorect)
 bsamrect=($bsamrect)
 bcmdrect=($bcmdrect)