LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-25-2009, 11:03 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Rep: Reputation: 63
Is there any snapshot tool like ksnapshot for window-manager?


Is there any snapshot tool like ksnapshot for window-manager?
fluxbox now.
 
Old 12-25-2009, 12:04 PM   #2
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 23
did you try scrot ?
 
Old 12-25-2009, 12:30 PM   #3
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Original Poster
Rep: Reputation: 63
How to take snapshot with scrot?
Pressed "Print Screen SysRq" button,nothing happened.
 
Old 12-25-2009, 12:33 PM   #4
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Original Poster
Rep: Reputation: 63
man scrot did it.
 
Old 12-25-2009, 12:34 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
With ' ImageMagick ' installed :
Code:
#!/bin/sh
 import $RANDOM.jpg;
 
 exit 0;
The executable script can be named e.g. jpg and
copied to /usr/local/bin/
.. or just click it .. and a crosshair appears.

You can also make a link / 'Icon' to start it.
.....

Last edited by knudfl; 12-25-2009 at 12:35 PM.
 
Old 12-25-2009, 12:44 PM   #6
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Original Poster
Rep: Reputation: 63
Quote:
Originally Posted by knudfl View Post
With ' ImageMagick ' installed :
Code:
#!/bin/sh
 import $RANDOM.jpg;
 
 exit 0;
The executable script can be named e.g. jpg and
copied to /usr/local/bin/
.. or just click it .. and a crosshair appears.

You can also make a link / 'Icon' to start it.
.....
imagemagick is installed.
But man imagemagick doesn't display anything.
 
Old 12-25-2009, 12:51 PM   #7
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by cola View Post
imagemagick is installed.
But man imagemagick doesn't display anything.
http://cf.ccmr.cornell.edu/cgi-bin/w...eMagick%281%29
 
Old 12-25-2009, 12:57 PM   #8
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,019

Original Poster
Rep: Reputation: 63
man ImageMagick
 
Old 12-26-2009, 12:49 AM   #9
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
I use a Perl script that I wrote. Named it screenshot

(currently has) 6 second delay until

Also, unique names each screen shot (uses seconds, minutes, hours of system clock)

1st, what eb does for me. And then, screenshot is the last one that I used my eb to cat it. It begins with the

#!/usr/bin/perl -w

line

Code:
al@P5Q:~$ alias | grep eb
alias eb='echo_binfil'


al@P5Q:~$ eb echo_binfil
cat /home/al/bin/echo_binfil

#!/bin/sh
echo cat ~/bin/$1
echo " "
cat ~/bin/$1
al@P5Q:~$



al@P5Q:~$ eb screenshot
cat /home/al/bin/screenshot

#!/usr/bin/perl -w
sleep(6);
#$time = `date '+%Y-%m-%d-%T'`;
#print $time, "\n";
system("import -window root /home/al/Desktop/screenshot-`date '+%Y-%m-%d-%T'`.png");
# end of screenshot Perl script
al@P5Q:~$
 
Old 12-26-2009, 07:54 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
@ acummings post # 9 ..

May be I'm wrong .. these two seem a little shorter,
both have variable "wait time" and a "cross hair"
to use with either a cut out of the screenshot or
the whole screen.

Program 1. : The images each get a random number file name
Code:
 import $RANDOM.jpg
... or with any other image suffix than .jpg .

Program 2. : A time file name like your perl program ..
Code:
 import $time `date '+%Y-%m-%d-%T'`.jpg
 
Old 12-26-2009, 11:54 PM   #11
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 49
Code:
import screenshot-`date '+%Y-%m-%d-%T'`.jpg
I now have that in my "run command" dialog to use when I just want to click the cross hair on a certain window. (BTW, what was $time it didn't seem to be needed)

My Perl script always takes the entire desktop -- I can run it from konsole then minimize konsole and then quickly move windows -- for it actually "screenshots" the entire desktop 6 seconds after it's been initially run.

--
Alan.
 
1 members found this post helpful.
  


Reply

Tags
import


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Snapshot tool alaios Linux - Software 4 04-29-2009 09:35 AM
Unable to take X Window Snapshot. rvijay Debian 4 02-19-2005 08:31 PM
Linux - File Snapshot-Tool kgk Linux - General 2 08-14-2003 04:30 AM
Snapshot-Tool kgk Linux - Software 1 08-14-2003 04:29 AM
snapshot tool gexiaofei Linux - Software 5 08-12-2003 06:03 PM


All times are GMT -5. The time now is 10:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration