LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2005, 07:27 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Screenshot?


Can someone tell me how I can take a screen shot in KDE 3.3.2? Print screen is not prompting me for a save file or anything and I can't seem to find anything in the KDE menu.

Thanks for any help.
 
Old 06-11-2005, 07:59 PM   #2
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Posts: 97

Rep: Reputation: 15
usually there are programs that take screenshots, but my favourite is the commandline way.

import -w root [destination]/[filename].png

Or, you can use a shellscript that i use.

Code:
#!/bin/bash
d=`date +%Y%m%d`
n=`date +%H:%M:%S`
sleep 2
import -w root [destination folder: ie. /home/user/screenshots]/$d-$n.png
Just copy that code to a text file and save it to /bin/wincapt.sh (or call it "shoot" it doesn't really matter) This will make a command that you can easily type that executes a number of commands!

To make it executable, type into the command line as root:
Code:
chmod a+x /bin/wincapt.sh
(wincapt is just an example filename)

then, you can make an icon on your bar or desktop that runs the command you just made.

When you run the script, it will automatically grab the date, take a screenshot, and call it YYYYMMDD-HH:MinuteMinute:SS.png. You can change the script to use jpeg, bmp, but I suggest png.

if you want the screenshot you just took to open in Eye of Gnome, add the line (to the shellscript):

eog [same destination as the picture you just took]/$d-$n.png

or the GIMP:

gimp [same destination as the picture you just took]/$d-$n.png

etc.


Hope that's helpful.

PS, if you know how, you can save the shellscript to /usr/local/bin and then if you want make a symbolic link to it in /bin



PPS

Quote:
"Love is a fist!"
Are you a Mr. Bungle fan too?

Last edited by toaster.waffle; 06-11-2005 at 08:07 PM.
 
Old 06-11-2005, 08:04 PM   #3
imemyself
Member
 
Registered: Feb 2004
Location: Wichita, KS
Distribution: CentOS 4, SuSE 10, Tiger
Posts: 110

Rep: Reputation: 15
Try running KSnapshot. In SuSE 9.3(this is using KDE 3.4, but I'm pretty sure its in the same place in 9.2/KDE 3.3), its under KDE Start button thing->Utilities->Desktop->Ksnapshot. You could also try KDE Start Button thing->Run command->ksnapshot. If that doesn't work then look in your distro's package management app to install it.
 
Old 06-11-2005, 08:08 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I ran the command:

Code:
carlos@carlos:~$ import -w root /home/carlos/Desktop/ error.png
and now have no idea what that did...
 
Old 06-11-2005, 08:12 PM   #5
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Posts: 97

Rep: Reputation: 15
look for the file.

if you have a space in the filename, it'll not work. if you want a space in the filename, first use a \

thus:

import -w root /blah/blah/desktop/\ error.png

or just go

import -w root /blah/blah/desktop/error.png

AND SO IT MAY BE THAT THERE IS NOW A FILE NAMED ERROR.PNG ON YOUR DESKTOP???
 
Old 06-11-2005, 08:16 PM   #6
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Usually if you just run:

import screenshot.jpg

your mouse will turn into a cross pointer. just select the window you want to capture or the background for a full screenshot. You can also capture partial windows buy click-hold-drag.

It will then save screenshot.jpg in your current folder.

KC
 
  


Reply



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
How do I take a screenshot?? kimchee411 Linux - Newbie 17 04-18-2005 04:14 AM
Screenshot techrolla DamnSmallLinux 9 02-07-2004 04:12 PM
screenshot? ixion Linux - General 6 03-07-2003 02:22 PM
Screenshot Freestone Linux - Newbie 3 02-26-2003 12:34 PM
How do I take a screenshot? glock19 Linux - General 4 08-31-2001 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration