13

Window is full-screen and grabs everything. New windows are appearing behind it.

I cannot just kill that application.

I'm logged in as root remotely through the SSH.

Expecting something like that:

$ xcontrol
> ls
window id: PID:   Window class:    Window name:    ...
111       1122   Vncviewer ..
222       1133    .. .            google-chrome ...
> minimize 111
> restore 111
> hide 222
> unhide 222
> move 111 by (10,-20)
> q
$

3 Answers 3

8

You can use wmctrl to control windows and the desktop from the command line. (If you are logging in via SSH or virtual console, you probably have to set DISPLAY to :0 first.) For instance:

## List windows
wmctrl -l
## Put the window (find window id in above list) below other windows:
wmctrl -i -r 0x04800004 -b add,below
## Remove maximization:
wmctrl -i -r 0x04800004 -b remove,maximized_horz,maximized_vert

I haven't found out how to minimize one window with wmctrl, but you can show the desktop (i.e., minimize all windows) with

wmctrl -k on
4
  • wmctrl finds the window, but it resists to all that commands. Does it work for, for example, OpenGL or some other enhanced windows?
    – Vi.
    Sep 10, 2010 at 14:24
  • 1
    wmctrl is supposed to work with EWMH/NetWM compatible X window managers. The web page lists WMs known to work. Which WM are you using?
    – bhm
    Sep 10, 2010 at 18:26
  • inconify feature for wmctrl is comming in a future release. the author added a -Y flag for that (commited in github). Aug 15, 2013 at 20:46
  • what if it's not a "window" exactly? it doesn't appear in wmctrl -l
    – Jayen
    Jan 9, 2022 at 0:48
7

Maybe xdotool can help you.

2
0

You can try:

xdotool search --name '^fzf_kitty$' windowunmap

xdotool search --name '^fzf_kitty$' windowmap

1
  • 3
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Jul 28, 2023 at 9:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .