Hide all windows & show the desktop by command.
- Inicie sesión ou rexístrese para enviar comentarios
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?
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
This is offtopic, but how do you embed blocks of code in forum posts like this?
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. :-)
: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!
printf(howdy!!)>
hehe
nice!!
howdy take two :)
thx tomlukey!
don'y put me in the troll hole please :(
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"
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
- Inicie sesión ou rexístrese para enviar comentarios