Can a script get info which area of a desktop is free for window placement from the DE?

Technical issues/questions of an intermediate or advanced nature.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Can a script get info which area of a desktop is free for window placement from the DE?

Post#1 by Rava » 17 Feb 2022, 00:06

I was looking into the option of having the ffplay window of a sound-only-file be moved to where empty space is, like the default way the XDCE DE does things (when it's told doing so in its settings). Seems man ffplay gives some options:

Code: Select all

-left title
    Set the x position for the left of the window (default is a centered window).
-top title
    Set the y position for the top of the window (default is a centered  window).
The issue: is there a way a script can get the info from the DE (in my case, from XFCE) which area of the screen is best to put the window in?
Cheers!
Yours Rava