The Ubuntu default screenshot tool (
gnome-screenshot) is lame. In Manjaro there is a better tool called
xfce4-screenshooter, which allows you to select a region, open it with Gimp, upload to Imgur, etc.
How to assign
xfce4-screenshooter to the Print button?
First, install the software (
sudo apt install xfce4-screenshooter). Then, open System Settings, select Keyboard, and go to the Shortcuts tab. Here ignore the “Screenshots” entry and select Custom Shortcuts. Click on the “+” sign and add the command
xfce4-screenshooter. As a result, a new entry will appear. Click on its right side and assign the Print button to it. It’ll complain a bit but click on Re-assign. Done.
I found this nice solution here: http://askubuntu.com/a/609060/53599 . Click on this link for screenshots.
Start -> Settings Manager -> Window Manager -> Keyboard.
Minimize all windows: Ctrl + Alt + D.
Under Ubuntu if you press the PrtScn button, an application starts that allows you to take a screenshot. How to have the same thing in Xfce? First, install the program
xfce4-screenshooter. Then add a new application shortcut:
Start -> Settings Manager -> Keyboard -> Application Shortcuts tab.
xfce4-screenshooter and assign the PrtScn button to it.
I want to grab a part of the screen by selecting a rectangle. I wanto to be able to refine the selection (resize the rectangle) like in Gimp. Then upload the selected image to imgur.
I found a great tool for this task called Nanoshot.
Read more about Nanoshot in this thread.
Download Nanoshot from here.
Note that I had to install the package
python-wnck (via apt-get) to make it run.
You want to take a screenshot of a selected area of the screen.
gnome-screenshot and choose “Select area to grab”.
I used to take a screenshot of the whole screen (under Ubuntu just press the PrtScn button), then crop it with Gimp. You can also copy the screenshot to the clipboard and paste it to Gimp.
Read more here.
This entry is based on this post.
sudo apt-get install scrot
$ scrot /tmp/out.jpg
Screenshot in 5 seconds:
$ scrot -cd 5 /tmp/out.jpg
Let our test file be “
Getting video info
mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify
It will produce a long output. You can refine the output:
(mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify | grep ID_) 2>/dev/null
Again, it will produce a long output that I omit. The video length is here (given is sec.):
Another interesting line is the video summary:
(mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify | grep 'VIDEO:') 2>/dev/null
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 386.0 kbps (47.1 kbyte/s)
Taking a screenshot at a given time
mplayer '/tmp/test.wmv' -ss '20' -noautosub -frames 1 -ao null -vo png:outdir='/tmp'
Here we take a screenshot from the video at 20 sec. The output file will be
/tmp/00000001.png (mplayer gives this name automatically).
Ref.: I found these tricks in this project.