PDA

View Full Version : [ubuntu] Create launcher



UnkleRay
June 24th, 2012, 11:46 AM
Hi all,
My first post. Using Ubuntu 12.04 64 bit. I've found popping this into terminal

ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 30 -qscale 1 -i :0.0 ./Desktop/mydesktop.mkv

an excellent way to record my desktop. I was just wondering if there was a way to create a launcher that will open terminal and pop this text into it to start the recording?

MG&TL
June 24th, 2012, 11:55 AM
Woo, first post, welcome!

Okay, install the main menu app from the software centre. Then open it, and make a new launcher, putting this command as the command field:


x-terminal-emulator -e "ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 30 -qscale 1 -i :0.0 ./Desktop/mydesktop.mkv"

black veils
June 24th, 2012, 03:57 PM
use this method, for your purpose, it should work the same way. the point is you are not just able to make a launcher for this function, you are needing to run a command, which requires a script in the process too. its easy enough really:

http://ubuntuforums.org/showthread.php?t=2007247

change the relevant command etc for your task!