Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Fedora Core 4 (with gnome desktop). I am having some trouble taking screenshots. If I hit the Print Screen key, a Save Screenshot dialog box comes up, and I am able to save the image to disk as a PNG. However, if I have a menu open (e.g. Applications menu) and I hit the Print Screen key, nothing happens. I would like to know how I can capture a screenshot of an open menu.
The "Print Screen" button (above your Insert, Home, PgUp, etc keys, generally) will take a screenshot for you, then bring up the "what do you want to do with this SS" dialog.
logosys, I know where the Print Screen key is. Yes, when you press the Print Screen key, the Save Screenshot dialog box appears. Please read my post carefully. My problem is: If I have a menu open (e.g. Applications menu) and I hit the Print Screen key, nothing happens. I want to take a screenshot of my desktop with a menu open.
If you use import from the ImageMagick package, I believe there is a delay setting. That might do the trick. I see you are unlikely to be using KDE; but KSnapshot has a time delay feature, too. Gimp's acquire feature has a time delay, too.
I made a little diddy to capture screens on a delay interval. You should give your self at least 5 seconds so you have time to get to the next menu. Don't forget to pause long enough at that area.
Code:
#!/bin/bash
echo ""
echo "How many screenshots?: "
read num
echo ""
echo "Interval in seconds?: "
read sec
for ((i=1; i<=$num; ++i ));do
let n=$n+1
xwd -display :0 -root >image$n.xwd
convert image$n.xwd image$n.jpg
if [ $n -lt $num ]; then
sleep $sec
fi
done
#this gets rid of the xwd files
rm -f *.xwd
First of all `sleep` is going to give me some time to set up the screen then the program `import` is going to take the screenshot. '-w root' specifies the window, root means the whole screen will be captured and the filename is where I want the screenshot saved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.