Linux screenshots, how to take them like a mac

linuxmacosopensuse-11.2screenshot

I run opensuse 11.2 KDE 4.3.5.

I do not have a mac, but I've used one and really like the one feature of the screenshots. Specifically, Command+Shift+3 which saves the screenshot to the desktop without having to open a program or anything like that.

Is there any way to do this in KDE? Ksnapshot is nice, but I'd like not to have to click the button every time.

I've tried the command line Import and it always gives me some X server not configured error or something, so that's not an option.

Best Answer

I know you said you had a problem with ImageMagick, but I think you should ask another question about why import is not working for you.

And then when you have that working something like this could help.... (maybe)


Well I found this page on how to take a screenshot on ubuntu linux, and there I picked the ImageMagick way and wrapped that in a little script. (or try scrot).

Save this in ~/bin/take_screenshot.sh

#!/bin/sh

time=`date +%Y%m%d_%H%M%S`
import -window root ~/screenshot_$time.png
#scrot ~/screenshot_$time.png

Then make the script executable

chmod 755 bin/take_screenshot.sh 

Then you add a keyboard shortcut that execute this script (well first you should try to run it from the terminal and make sure it is working...).

And now when you press that Command+Shift+3 a screenshot will be saved in your home dir with a unique name, something like screenshot_20100318_074618.png.

Related Question