On 10/3/20 1:08 AM, Gene Heskett wrote:
On Friday 02 October 2020 16:28:45 Alan Coopersmith wrote:
Fortunately, there's already an existing script which knows about the
most common screensaver implementations and how to suspend them:
https://linux.die.net/man/1/xdg-screensaver
https://gitlab.freedesktop.org/xdg/xdg-utils/-/blob/master/scripts/xdg
-screensaver.in
So LinuxCNC could call xdg-screensaver suspend with the ID of its
control window.
On the machines own monitor, isn't that display 0:0?
:0.0 is the display, not the window. "xwininfo -tree -root" will list all
the window ids on that display.
Example command line please?
xdg-screensaver suspend `xwininfo -name xlogo | awk '/Window id/ {print $4}'`
But if LinuxCNC is calling it directly, it knows its own window ids already and
doesn't have to use xwininfo to find them.
--
-Alan Coopersmith- alan.coopersm...@oracle.com
Oracle Solaris Engineering - https://blogs.oracle.com/alanc
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s