The Wiki has moved to new hardware, and the old server died.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howtos:window_managers:take_a_screenshot [2013/02/09 17:11 (UTC)]
hazel [Imagemagick's ''import'' Command]
howtos:window_managers:take_a_screenshot [2013/02/09 17:19 (UTC)]
hazel [The ''xwd'' Command]
Line 34: Line 34:
 <​code>​xwd | convert - path/​to/​screenshot.ext</​code>​ <​code>​xwd | convert - path/​to/​screenshot.ext</​code>​
  
-You will be provided with a crosshair, just select the window you want to capture. You can change the type of the output file only by changing the extension, for example ''​screenshot.png'',​ ''​screenshot.jpg'',​ ''​screenshot.gif'',​ etc. The ''​-''​ switch is to indicate to ''​convert''​ that it should translate from standard input rather than a file.+You will be provided with a crosshair ​tool; use it to select the window you want to capture. You can change the type of the output file only by changing the extension, for example ''​screenshot.png'',​ ''​screenshot.jpg'',​ ''​screenshot.gif'',​ etc. The ''​-''​ switch is to indicate to ''​convert''​ that it should translate from standard input rather than a file.
 <note tip>​Remember to raise the window you want to grab above the others. Otherwise every window which covers it will be replaced by black pixels (or black boxes) in the final capture. Which by the way can be an useful way to hide some parts of the output! For example if you take a screenshot of an xterm full of commands with some of your personal info displayed (passwords, IP addresses, ...), or a screenshot of a browser and you want to hide some tabs. Just place some windows over the one you want to capture.</​note>​ <note tip>​Remember to raise the window you want to grab above the others. Otherwise every window which covers it will be replaced by black pixels (or black boxes) in the final capture. Which by the way can be an useful way to hide some parts of the output! For example if you take a screenshot of an xterm full of commands with some of your personal info displayed (passwords, IP addresses, ...), or a screenshot of a browser and you want to hide some tabs. Just place some windows over the one you want to capture.</​note>​
  
Line 73: Line 73:
   * In the player/​viewer,​ play the video or show the image   * In the player/​viewer,​ play the video or show the image
   * Choose the fullscreen view mode.   * Choose the fullscreen view mode.
-  * Wait for the crosshair ​to display, then click. Your screenshot is now recorded.+  * Wait for the crosshairs ​to display, then click. Your screenshot is now recorded.
  
-You can use whatever command switches or even noneit's up to you. Without switches you'll have to click the window to capture, with any of them the screenshot will be taken just after the ''​sleep''​ countdown reaches 0.\\ +You can use whatever command switches ​you like or even none it's up to you. Without switches you'll have to click the window to capture, with any of them the screenshot will be taken just after the ''​sleep''​ countdown reaches 0.\\ 
 If you are using the automated methods (ie. ''​xwd -root''​ or ''​import -window root''​),​ you can add a bell after the command, so you know the operation is complete. The full command is then: If you are using the automated methods (ie. ''​xwd -root''​ or ''​import -window root''​),​ you can add a bell after the command, so you know the operation is complete. The full command is then:
 <​code>​sleep 15 ; xwd -root | convert - path/​to/​screenshot.ext ; echo $'​\a'</​code>​ <​code>​sleep 15 ; xwd -root | convert - path/​to/​screenshot.ext ; echo $'​\a'</​code>​
Line 82: Line 82:
  
 ====== To go further ====== ====== To go further ======
-The tools are well documented in their ''​man''​ pages, I recommend you reading ​them for fine tuning or better automation of your screenshots:​ ''​man import'',​ ''​man xwd'',​ ''​man convert''​.\\  +The tools are well documented in their ''​man''​ pages, I recommend you to read them for fine tuning or better automation of your screenshots:​ ''​man import'',​ ''​man xwd'',​ ''​man convert''​.\\  
-''​xwd''​ has a respective ​program called ''​xuwd''​. It reads an ''​xwd''​ dump (either from dump file or standart ​input) and displays it. It can be useful for automatic display of screenshots ​done on remote machines, if you don't need to save the files.+''​xwd''​ has a corresponding ​program called ''​xuwd''​. It reads an ''​xwd''​ dump (either from dump file or from standard ​input) and displays it. It can be useful for automatic display of screenshots ​taken on remote machines, if you don't need to save the files.
  
 ====== I do not want to read all this article! I'm in a hurry! ====== ====== I do not want to read all this article! I'm in a hurry! ======

In Other Languages
QR Code
QR Code howtos:window_managers:take_a_screenshot (generated for current page)