The Computer Oracle

How to hide or minimize X11 window from console?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 How To Hide Or Minimize X11 Window From Console?
00:28 Answer 1 Score 6
00:36 Accepted Answer Score 8
01:06 Answer 3 Score 0
01:20 Thank you

--

Full question
https://superuser.com/questions/186748/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #console #xorg

#avk47



ACCEPTED ANSWER

Score 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



ANSWER 2

Score 6


Maybe xdotool can help you.




ANSWER 3

Score 0


You can try:

xdotool search --name '^fzf_kitty$' windowunmap

xdotool search --name '^fzf_kitty$' windowmap