Results 1 to 3 of 3

Thread: Can i minimize a window using a Terminal command ?

  1. #1
    Join Date
    Apr 2009
    Beans
    4

    Can i minimize a window using a Terminal command ?

    Hello ,
    I want to minimize or close a window using a terminal command . Is this possible ?

  2. #2
    Join Date
    Oct 2007
    Location
    Fort Collins, CO, USA
    Beans
    481
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can i minimize a window using a Terminal command ?

    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.

  3. #3
    Join Date
    Dec 2012
    Beans
    1

    Re: Can i minimize a window using a Terminal command ?

    Last edited by alseambusher; December 29th, 2012 at 08:40 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •