LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 04-11-2010, 01:29 PM   #1
Rick_Nystrom
LQ Newbie
 
Registered: Jan 2010
Location: Burbs of Chicago, IL, USA
Distribution: Still comparing a bunch.
Posts: 17

Rep: Reputation: 0
Quick screen shots in linux?


As a user coming from the windows world, one feature that I really hope linux has in it is the following that I found myself using quite often in windows:

When I want to capture the screen to a file in windows I can just hit the keys shift+PrintScreen (to copy the current window to the clipboard) or Ctrl+PrintScreen (to capture the entire display to the clipboard). I then merely open up MS Paint, and hit Edit|Paste and am able to save the window/screen shot to a jpg file.

Is there a similar way to do such a thing in linux? I know I'm not mentioning a distro, and this might vary from one to another, but I haven't yet decided on a distro to stick with for now. (So many choices!)

Many TIA!
 
Old 04-11-2010, 01:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
It's more of a matter of DE/WM as to how this can be done.
KDE certainly has a hot-key feature (that may not be enabled
by default), and with fluxbox I use
ImageMagicks import (bound to two different hot-keys to achieve
the respective result) - I don't copy to clipboard, though, I
save to a time-stamped file directly.



Cheers,
Tink
 
1 members found this post helpful.
Old 04-11-2010, 01:42 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
As far as I am aware, KDE uses the same keys. At least, the last time I needed a screenshot I didn't use any keys I hadn't used before. Not sure about Gnome though.
 
1 members found this post helpful.
Old 04-11-2010, 01:49 PM   #4
fbsduser
Member
 
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 266

Rep: Reputation: 30
Gnome-screenshot for gnome/Xfce
Ksnapshot for KDE
 
1 members found this post helpful.
Old 04-11-2010, 02:06 PM   #5
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Rep: Reputation: 64
I use fluxbox, which has hotkeys (so like whats already been mentioned, you'd need to find out how your desktop environment/window manager handles that).

so I have a hotkey calling the ImageMagick program with this commandline:

Code:
import screenshot.png && display -resize 75% screenshot.png
 
1 members found this post helpful.
Old 04-11-2010, 05:36 PM   #6
Rick_Nystrom
LQ Newbie
 
Registered: Jan 2010
Location: Burbs of Chicago, IL, USA
Distribution: Still comparing a bunch.
Posts: 17

Original Poster
Rep: Reputation: 0
Wow! Again, so many choices! Many thanks to all who replied. I really appreciate you taking the time. I'm getting there. Slowly, but surely, but I am getting there.

Thanks all once again!
Rick
 
Old 04-12-2010, 12:18 PM   #7
Cotun
Member
 
Registered: Jan 2009
Location: UK
Distribution: Debian Stable and Unstable
Posts: 61

Rep: Reputation: 21
I also use Fluxbox, and I once found a script that makes taking screenshots pretty easy. I never saw any need to replace it.

Code:
#!/bin/bash

DIR="${HOME}/screenshots"
DATE="$(date +%Y%m%d@%H%M%S)"
NAME="${DIR}/screenshot-${DATE}.png"
LOG="${DIR}/screenshots.log"

# Check if the dir to store the screenshots exists, else create it: 
if [ ! -d "${DIR}" ]; then mkdir "${DIR}"; fi 

# Screenshot a selected window
if [ "$1" = "win" ]; then import "${NAME}"; fi

# Screenshot the entire screen
if [ "$1" = "scr" ]; then import -window root "${NAME}"; fi

# Screenshot a selected area
if [ "$1" = "area" ]; then import "${NAME}"; fi

if [[ $# = 0 ]]; then
  # Display a warning if no area defined
  echo "No screenshot area has been specified. Screenshot not taken."
  echo "${DATE}: No screenshot area has been defined. Screenshot not taken." >>             "${LOG}"
else
  # Save the screenshot in the directory and edit the log
  echo "${NAME}" >> "${LOG}"
fi
Save the script with the name "screenshot" and then type "chmod +x screenshot" to make it executable. After that, it can be run in one of the following ways depending on what you want.

screenshot win
screenshot area
screenshot scr

All screenshots taken are then saved to /home/<user>/screenshots

Hope this helps

Cotun
 
Old 04-12-2010, 01:46 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Try the "scrot" command-line program.
 
Old 04-13-2010, 03:46 PM   #9
bjrn64
Member
 
Registered: Jan 2008
Location: cheltenham
Distribution: asus 1005ha/2gb ubuntu 9.10 + debian lenny on a tower and asus 901 /1gb backtrack 4
Posts: 33
Blog Entries: 2

Rep: Reputation: 16
hi welcome to LQ in ubuntu applications/accessories/take screenshot

alternative /system/preferences/keyboard shortcuts (its set to print screen but you can apply your own shortcut easily

good luck

Last edited by bjrn64; 04-13-2010 at 03:47 PM.
 
  


Reply

Tags
capture, quick, screen


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
Full screen screen shots -- Screenshot program with hotkeys studpenguin Linux - General 1 03-10-2009 11:58 PM
Screen Shots Dr. Bush Suse/Novell 2 05-29-2005 03:56 PM
Screen Shots! jimsproch Linux - Newbie 7 12-14-2004 07:29 AM
Screen Shots jon_206 Linux - Newbie 3 10-06-2004 12:25 AM
Screen shots doralsoral Linux - Software 3 01-27-2004 06:02 PM


All times are GMT -5. The time now is 11:54 AM.

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