Archive

Posts Tagged ‘screenshot’

Ubuntu: assign a better screenshot tool to the Print button

September 5, 2016 Leave a comment

Problem
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?

Solution
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.

Advertisements
Categories: manjaro, ubuntu Tags: ,

Xfce shortcuts

August 3, 2015 Leave a comment

Start -> Settings Manager -> Window Manager -> Keyboard.

Minimize all windows: Ctrl + Alt + D.

Update (20150806)
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.

Add xfce4-screenshooter and assign the PrtScn button to it.

Categories: manjaro Tags: , ,

take a screenshot and upload to imgur

November 5, 2013 Leave a comment

Problem
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.

Solution
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.

Categories: python, ubuntu Tags: ,

Take screenshot of a selected area

October 30, 2013 Leave a comment

Problem
You want to take a screenshot of a selected area of the screen.

Solution
Launch gnome-screenshot and choose “Select area to grab”.

Classic way
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.

Links
Read more here.

Categories: ubuntu Tags: ,

Screenshot from command line

January 1, 2013 Leave a comment

This entry is based on this post.

Install:

sudo apt-get install scrot

Screenshot:

$ scrot /tmp/out.jpg

Screenshot in 5 seconds:

$ scrot -cd 5 /tmp/out.jpg
Categories: bash Tags: ,

Screenshot and video information with mplayer

May 7, 2011 1 comment

Let our test file be “/tmp/test.wmv“.

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.):

ID_LENGTH=119.93

Another interesting line is the video summary:

(mplayer '/tmp/test.wmv' -ao null -vo null -frames 1 -identify | grep 'VIDEO:') 2>/dev/null

Sample output:

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.