hi friends, hi roberts,
i want to make my desktop flexible for different resolutions in xvesa.
for that goal i want to read or get the current resolution.
in my examples i looked just for the y-value,
because i want to place my desktop pager in the left bottom corner.
would you tell me a way to place something in the left bottom corner?
f.e. like the concept of positioning wbar or a panel!?
another goal is to position mnttool on the right up corner...
first i tried to use
awk ' BEGIN{FS=",";} { $1= "";} {sub(/^[ \t]+/, ""); print}' /sys/devices/platform/vesafb.0/graphics/fb0/virtual_size
although it stores a suitable value,
i guess that this virtual_size has not too much to do with my current resolution...
later i tried
Xvesa -listmodes 2>&1 | grep ^0x | awk '{ printf "%s\n",$2 }' | sort -n > /tmp/xvesamodes
awk ' BEGIN{FS="x";} { $1= "";} { $3= "";} {sub(/[ \t]+$/, "")} {sub(/^[ \t]+/, ""); print}' /tmp/xvesamodes | sed '$!d'
but Xvesa -listmodes offers so many resolutions that someones display cannot support,
so the highest resolution is not always the suitable one.
i guess that this one-liners are looking ugly for experienced coders, so please, don't mind...
so do you know a way, every hint is welcomed!
thank you