FVWM: Re: Screenshot done from MenuItem

From: calmar <mac_at_calmar.ws>
Date: Thu, 26 Feb 2004 07:00:51 +0100

Stephen R Dennison <srd_at_seekerof.info> writes:

> I have this item in a menu:
> + "Screen Cap" Exec exec screencap 5
>
> I have the following in a file ~/bin/screencap:
> #!/bin/bash
> sleep $1
> import -window root ~/screencaps/`date +%a``ls ~/screencaps/|wc
> -l|bc`.jpeg
>
> The funny looking command creates a jpeg image in the screencaps
> directory of my home directory, the name of the file is the current day
> as a three letter abbreviation with the number of images in the folder
> tacked on to the end to prevent them from over writing eachother. For
> example, if I were to use the menu item on a sunday then I would have
> Sun0.jpeg in the screencaps directory after I took a screen shot.
>
> The 5 after the menu option makes the script sleep for 5 seconds before
> taking the scren cap.

Thats pretty nice, and usefule also for other tasks that comes to
my mind.

the bc at the end is just to make sure it's `only' a number, even
so <here> without it, it seems to work too?

thanks and greetings
marco candrian

-- 
  calmar 
           (o_         GNU/Linux is GREAT      
           //\                 
           V_/_        http://www.calmar.ws 
                                          
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Feb 26 2004 - 00:03:12 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST