LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Screenshot? (https://www.linuxquestions.org/questions/linux-software-2/screenshot-332584/)

carlosinfl 06-11-2005 07:27 PM

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.

toaster.waffle 06-11-2005 07:59 PM

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?

imemyself 06-11-2005 08:04 PM

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.

carlosinfl 06-11-2005 08:08 PM

I ran the command:

Code:

carlos@carlos:~$ import -w root /home/carlos/Desktop/ error.png
and now have no idea what that did...

toaster.waffle 06-11-2005 08:12 PM

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???

kencaz 06-11-2005 08:16 PM

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


All times are GMT -5. The time now is 09:18 PM.