I'm looking for something of the effect of, Prt Screen key, then pasting it into GIMP (or another program). Is there any way to do this? Or do I have to set up a screenshot terminal command on timers?
"scrot"
Print
I tried that. I'm using icewm.It should already be working if you have KDE or Mate. Have you tried pressing the Prt Screen key yet?
I'm looking for something of the effect of, Prt Screen key, then pasting it into GIMP (or another program).
I use IceWM from time to time. x11-wm/icewm has a keys configuration file (per user or global, see icewm-keys(5) for location), where a keybinding can be set to take a screenshot with a screenshot utility, no additional keybind utility necessary.I'm using icewm.
key "Print" maim -su $HOME/Pictures/Screenshots/Screenshot-`date '+%F-%T'`.png
OPTIONS
-c, --clipboard
Send the grab directly to the clipboard.
# print screen
key "Alt+Ctrl+s" maim -u ~/Pictures/Screenshots/Screenshot-`date '+%F-%T'`.png
# print active window
key "Alt+Ctrl+w" maim -ui $(xdotool getactivewindow) ~/Pictures/Screenshots/Screenshot-`date '+%F-%T'`.png
#test
key "Alt+Ctrl+t" xterm
#!/bin/sh
maim -u ~/Pictures/Screenshots/Screenshot-`date '+%F-%T'`.png
chmode 700 ~/bin/maims.sh
key "Alt+Ctrl+s" maims.sh
#!/bin/sh
# do the screenshot with my options (see man xwd)
xwd -nobdrs -silent -out ~/path/to/folder/screenshot.xwd
# wanna have the timestamp as filename, so generate a temp file 't'
# it's ugly that way, but it works
date "+%Y%m%d_%T" > ~/path/to/folder/t
i=`cat ~/path/to/folder/t`
# now use ImageMagick's tool convert to make a JPG out of the .xwd
convert ~/path/to/folder/screenshot.xwd ~/path/to/folder/screenshot_${i}.JPG
# clean up the garbage
rm ~/path/to/folder/screenshot.xwd
rm ~/path/to/folder/t
exit 0
$ fgrep -i print .config/i3/config
bindsym Print exec beep -g 90 && scrot "${HOME}/Desktop/%Y-%m-%d-%H%M%S-_--_screen_$(uname -n).png" && notify-send -t 1000 --app-name scot screenshot
bindsym Ctrl+Print exec beep -g 90 && scrot --focused "${HOME}/Desktop/%Y-%m-%d-%H%M%S-_--_screen_$(uname -n).png" && notify-send -t 1000 --app-name scot screenshot
bindsym Shift+Ctrl+Print exec beep -g 90 && scrot --select "${HOME}/Desktop/%Y-%m-%d-%H%M%S-_--_screen_$(uname -n).png" && notify-send -t 1000 --app-name scot screenshot
It is.For what it does, the script does look strikingly baroque.