View Single Post
  #8   (View Single Post)  
Old 8th June 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

make a directory ~/snapshots

you could write a one-liner wrapper as
Code:
xwd | convert - ~/snapshots/$(date -j +%Y%m%d%H%M%s).png
save this line as a file under your ~/bin directory (might need to create a ~/bin , ~/bin is in the search PATH) under any name as, "snapshot"
make this executable
chmod +x snapshot

then, just put the line in your ~/.icewm/menu file as
exec an_icon.png snapshot

date -j is OpenBSD specific (parse date without changing the clock), read man date for other OSes
__________________
da more I know I know I know nuttin'
Reply With Quote