Hey Mikeslrmikeslr wrote:The problem is that they are dependent on the current screen resolution. That will vary from one installation to another, and one of our objectives is to present the user with something which will "just work: no fiddling necessary." I've spent several hours googling for a way to determine, separately, the current width and height of display. Once those are determined, they can be applied to a formula to set xvkbd's width and height relative to the screen's width and height.
The "solutions" I found either required installing python, or programming in C or didn't work. I'd prefer something which could be used by a "stock" puppy. I'm using wary 5.5 as my test bed. Every "stock" puppy already has built-in tools to make such determination as they come with several applications which report current screen dimensions. Just not in a format I know how to manipulate.
I'm using this all the time (also in Radar to place its window):
Code: Select all
read MAXX MAXY <<< `xwininfo -root | awk 'NR>=8&&NR<=9 {print $2}'`
echo "Width="$MAXX "Height="$MAXY