View Full Version : Can i minimize a window using a Terminal command ?
May 15th, 2009, 08:28 PM
I want to minimize or close a window using a terminal command . Is this possible ?
May 15th, 2009, 10:27 PM
The xwit command that is part of the xwit package will do that.
The tricky part is identifying which window you want to effect.
The default for xwit uses the WINDOWID environment variable.
That is often set by terminal emulators.
But 'xwit -iconify' under a gnome-terminal's shell won't iconify it.
That is because the WINDOWID set by gnome-terminal is a sub-window of the top-level window that iconify could work with.
It would be possible, but not simple, to find the right top window of a gnome terminal by use of xwininfo and xprop commands.
Another approach would be to select the window by window name.
But that name may not be a unique attribute of the one window you want.
December 29th, 2012, 07:38 PM
Use this script: https://gist.github.com/4408536
or follow this post
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.