import /tmp/scr-`date +\%m\%d-\%H\%M\%S`.png
Import reads an image from any visible window on an X server and outputs it as an image file. You can capture a single window, the entire screen, or any rectangular portion of the screen. Use display for redisplay, printing, editing, formatting, archiving, image processing, etc. of the captured image.
The target window can be specified by id, name, or may be selected by clicking the mouse in the desired window. If you press a button and then drag, a rectangle will form which expands and contracts as the mouse moves. To save the portion of the screen defined by the rectangle, just release the button. The keyboard bell is rung once at the beginning of the screen capture and twice when it completes.
Yes! It's x11/xwd (X window dump). Large output files which cannot be used directly in most cases, although graphics/gimp does understand the format.Isn't there a short name x-something tool for doing that?
The problem with GIMP is that you cannot map the screenshot capture to a key. E.g. I map the ImageMagick's action to the PrtScr key to trigger it quickly when needed.graphics/gimp is what I use but I make heavy use of it and have it installed on all my laptops.
… graphics/gimp does understand the format.
I've never cared about extensions since Gimp opens files based on their "magic". According to the Wikipedia article it can be .xwd.What extension should I give the file, for it to be usable with e.g. the Open With feature of Dolphin?
… According to the Wikipedia article it can be .xwd.
… cannot map the screenshot capture to a key. …
I don't, but you can.The problem with GIMP is that you cannot map the screenshot capture to a key. E.g. I map the ImageMagick's action to the PrtScr key to trigger it quickly when needed.
trigger it quickly when needed.
Configure Keyboard Shortcuts
If you have it open and it's not in focus it stands to reason it should still work.
… "Spectacle" … Super-convenient.
set $mod Mod4
bindsym Control+Print exec scrot -z -o '%y%m%d%H%M%S.png' -e 'convert $f -crop 1920x1080+0+0 $f && mv $f PICTURE_FOLDER'
bindsym Shift+Print exec scrot -z -o '%y%m%d%H%M%S.png' -e 'convert $f -crop 1366x768+1920+0 $f && mv $f PICTURE_FOLDER'
bindsym $mod+Print exec scrot -z -o '%y%m%d%H%M%S.png' -e 'mv $f PICTURE_FOLDER'
bindsym Print exec scrot -z -o -u '%y%m%d%H%M%S.png' -e 'mv $f PICTURE_FOLDER'
bindsym --release Control+Shift+Print exec scrot -z -o -s '%y%m%d%H%M%S.png' -e 'mv $f PICTURE_FOLDER'