03-02-2023, 10:57 PM
moOde simply reports the viewport size
And when Local Display starts the screen size is obtained by querying the frame buffer using the command below.
Code:
if (SESSION.json['pkgid_suffix'] == 'viewport') {
notify('viewport', window.innerWidth + 'x' + window.innerHeight, '10_seconds');
}
And when Local Display starts the screen size is obtained by querying the frame buffer using the command below.
Code:
fbset -s | awk '$1 == "geometry" { print $2","$3 }'