Hide all windows & show the desktop by command.

12 respuestas [Último envío]
Pandya
Desconectado/a
se unió: 11/11/2014

We use Show Desktop Button on Gnome-panel to hide all windows & show the desktop as shown in below screen-shot:

Same thing via command-line. (say In shell-scripting I want to use command for hiding all windows & showing desktop).

Therefore, How do I do that by command?

Pandya
Desconectado/a
se unió: 11/11/2014

You can use wmctrl as follows:

wmctrl  is  a  command  that  can  be  used  to  interact with an X Window manager that is compatible with the EWMH/NetWM specification.  wmctrl can query the window manager for information, and it can request  that  certain window management actions be taken.

Fisrt Install wmctrl:
sudo apt-get install wmctrl

From It's manpage:

-k  ( on  |  off  )
              Turn on or off the window manager's "show the desktop" mode (if the window manager implements this feature).

So, Run following command to "show the desktop"
wmctrl -k on

Calinou
Desconectado/a
se unió: 03/08/2014

This is offtopic, but how do you embed blocks of code in forum posts like this?

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

With the HTML tag "code". If you do not know HTML, type Ctrl+U right now and you will see some. Search (with Ctrl+F) for the command Pandya typed and you will understand how to use the tag "code"... and any other HTML tag. :-)

tomlukeywood
Desconectado/a
se unió: 12/05/2014

:code;
printf("like this!");
:/code;

but replace the ; with a >
and the : with a <
i had to change it otherwise it would not show
in the post!

Pandya
Desconectado/a
se unió: 11/11/2014
SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014


printf(howdy!!)>

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

hehe
nice!!

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014


howdy take two :)

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

thx tomlukey!

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

don'y put me in the troll hole please :(

tomlukeywood
Desconectado/a
se unió: 12/05/2014

we wont just dont up your post anymore now you have the answer!
have fun posting code!
:D

also your c syntax is wrong correction:
printf("howdy!!");
original:
printf(howdy!!)>

a good c tutorial can be found here:
https://www.youtube.com/watch?v=TL5vP45dYps&list=PL0170B6E7DD6D8810

but please only use libre methods to use it like these:

in my opinion the best libre method:
https://goblinrefuge.com/mediagoblin/u/onpon4/m/tutorial-bypassing-youtube-javascript-requirements/

maby you only use cli??:

sudo apt-get install youtube-dl
youtube-dl "Video url here"

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

i use minitube. works great.. I can view 1080p vids with an atom 1 ghz 1gb ram and slow intel!!
very fast minitube :)

thx for the tut