7

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.

1
  • 2
    (Your typo 'not confectioned' (instead of 'not configured,' I assume) made me smile.)
    – goblinbox
    Mar 18, 2010 at 3:26

6 Answers 6

1

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.

3
  • Amazing. Wonderful. Perfection. Note, i did install Scrot in yast, so I don't know if that makes it work or not, but it works with it.
    – alpha1
    Mar 19, 2010 at 1:22
  • Also, I changed it to this: import -window root ~/Desktop/screenshot_$time.png Just FYI for anyone else who might use this.
    – alpha1
    Mar 19, 2010 at 1:23
  • That link above is not working anymore. That's the bad part of not writing the full stuff here :(
    – mau
    Feb 12, 2020 at 22:41
6

I use Shutter for all my Linux screenshooting needs. You can set it to save screenshots on your desktop, and you can easily set keyboard shortcuts for it, so it should handle your particular question, as well as make most screenshot-related tasks much easier.

1
  • 1
    +1 for pointing me to Shutter, It is an awesome program.
    – SunnyShah
    Oct 27, 2010 at 10:24
3

On Linux:

1) Applications —> Accessories —> Take Screenshot.

2) Print Screen" (PrtSc) button on your keyboard.

I think there is no Mac equivalent for applekey + shift + 4 or windows snipping tool

Thank you

1
  • I know how to do all that, its easy, but I'm looking for this extra feature of being able to save to desktop without hitting a save button or pasting it.
    – alpha1
    Mar 18, 2010 at 3:15
1

Binded custom keyboard shortcut Alt+Shift+4 with script that will provide crosshair pointer similar as OSX Command+Shift+4:

#!/bin/bash
savepath=$HOME/Desktop/screenshots
import $savepath/`date +"%H:%M:%S_%m-%d-%y_"`screenshot.jpg
1
  • This works like a charm!!
    – Goahnary
    Apr 8, 2020 at 15:44
0

To add the hotkey for it, open personal settings (in opensuse KDE at least) go to input actions, Edit, new>global shortcut>command/url then add your trigger hotkey, and then put the full path in the action mine was /home/michael/bin/screenshot.sh ( i had it chmoded at 777)

0

You should be able to use the print screen "PrtSc" key on your keyboard, in KDE (and Gnome, for that matter). Alternatively, Application Launcher Menu >> Graphics >> KSnapshot. This should give you a pretty GUI with a number of options.

1
  • Yes, I've said i Know how to take a screenshot, I'm not a noob. But I was looking for a way to do it without open a program or having to hit anything beyond a set of hotkeys. Ksnapshot you hit Printscreen and then you have to hit save each time. The answer i marked as best, allows you to take multiple sceenshots in quick succession without hitting anything more than the hotkey.
    – alpha1
    Mar 22, 2010 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.