EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: MEDM Close Display
From: Kevin Peterson <[email protected]>
To: Elmer Pensack <[email protected]>, <[email protected]>
Date: Fri, 5 May 2017 14:06:45 -0500
If you're running on Linux you can close the active X windows from the
command line using one of the following combinations of commands.

bash:

  $ wmctrl -ic `xprop -root | grep '_NET_ACTIVE_WINDOW(' | cut -d \# -f 2`

tcsh:

  $ wmctrl -ic `xprop -root | grep '_NET_ACTIVE_WINDOW(' | cut -d # -f 2`

It is sometimes useful to get a list of all of the X window IDs:

  $ xprop -root | grep "_NET_CLIENT_LIST(WINDOW)"

The IDs can then be used to get the name of each window:

  $ xprop -id [HEX_ID_GOES_HERE] | grep WM_NAME

There is another program, xdotool, that allows windows to be
repositioned from the command line.  I don't believe it is installed by
default on most Linux systems.  I use xdotool on OS X to work around
bugs in the X server that result in MEDM screens appearing off the
viewable desktop when unlocking the screen.

Kevin

On 5/5/17 12:44 PM, Elmer Pensack wrote:
> Greetings,
> 
> Simple MEDM question.
> 
> Is there a way to close a MEDM display without clicking the x in the top
> right corner (or right-clicking and selecting close)? I'm looking for a
> CLOSE button. I thought a shell command button would a possibility, but
> I'm not sure what to call.
> 
> Thanks!
> 
> Elmer Pensack


References:
MEDM Close Display Elmer Pensack

Navigate by Date:
Prev: Re: MEDM Close Display Elmer Pensack
Next: Re: MEDM Close Display Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: MEDM Close Display Andrew Johnson
Next: areaDetector and ADCore R3-0 released Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·