« Linux Alternatives to Windows XP Software | Home | Video Game Console Emulators for Linux »
Take Screenshots in Xfce
October 20, 2008 at 12:14 AM (Bash Scripts, How To)
ImageMagick must be installed for this to work.
Create a file named screenshot, and paste this into it.
#!/bin/bash xwd -root | convert xwd:- ~/Desktop/screenshot.png
Run this command to make the file executable.
$ chmod +x screenshot
Run this command to move the file to /usr/bin.
# mv screenshot /usr/bin/screenshot
Open the Xfce menu -> Settings -> Keyboard Settings. Go to the Shortcuts tab, and add a new theme. Now add a shortcut; type screenshot for the command, and press the Print Screen key when it tells you to set the shortcut.
Now when someone posts yet another “show your desktop” thread, you won’t have to feel left out!













October 20th, 2008 at 7:24 pm
There is always scrot. :)
December 4th, 2008 at 3:39 pm
useful, many thanks !
December 4th, 2008 at 3:50 pm
in addition if you want to add a time fraction to the file.
in the fashion:
DATE=$(date +%y%m%d%H%M%S)
and put $DATE wherever you want in the filename string.
May 20th, 2009 at 6:38 am
[...] Innanzitutto allego il link al post che mi ha risolto molte cose e da cui ho preso spunto: http://gnulinuxblog.com/how-to/take-screenshots-in-xfce/ [...]