Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-11-2010, 02:29 PM   #1
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, 02:37 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
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.

1 members found this post helpful.
Old 04-11-2010, 02:42 PM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 02:49 PM   #4
Registered: Oct 2009
Distribution: Hackintosh, SlackWare
Posts: 267

Rep: Reputation: 30
Gnome-screenshot for gnome/Xfce
Ksnapshot for KDE
1 members found this post helpful.
Old 04-11-2010, 03:06 PM   #5
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:

import screenshot.png && display -resize 75% screenshot.png
1 members found this post helpful.
Old 04-11-2010, 06:36 PM   #6
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!
Old 04-12-2010, 01:18 PM   #7
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.


DATE="$(date +%Y%m%d@%H%M%S)"

# 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}"
  # Save the screenshot in the directory and edit the log
  echo "${NAME}" >> "${LOG}"
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

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

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Try the "scrot" command-line program.
Old 04-13-2010, 04:46 PM   #9
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 04:47 PM.


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-11-2009 12:58 AM
Screen Shots Dr. Bush SUSE / openSUSE 2 05-29-2005 04:56 PM
Screen Shots! jimsproch Linux - Newbie 7 12-14-2004 08:29 AM
Screen Shots jon_206 Linux - Newbie 3 10-06-2004 01:25 AM
Screen shots doralsoral Linux - Software 3 01-27-2004 07:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:03 PM.

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