View Single Post
Posts: 215 | Thanked: 348 times | Joined on May 2011
#460
Originally Posted by auouymous View Post
xclip is what you want. Version 0.8 is in the debfarm repo but is twice the size it should be so might be compromised. I compiled version 0.12 and put it up on the ASUI download page http://asui.garage.maemo.org/_download/xclip . It isn't the full xclip package, only the xclip binary. Copy it to /usr/bin/xclip and chmod 755 it. You must then install the libxmu6 dependancy by running the following command as root:

Code:
apt-get install libxmu6
Now change your script to call xclip, those are grave marks around the command, it is the character on the tilde key of a full size keyboard.

Code:
#!/bin/sh
cd /media/mmc1/Videos
youtube-dl-x --no-part -f 5 -o "%(stitle)s.%(ext)s" `xclip -out`
Now you can just run that script without any parameters and it will download the selected youtube URL. Enjoy!
Thanks for this! I was just searching for something like xclip today, but it is not working for me... (I am using N900, could that be a reason why?)

Code:
Nokia-N900:~# xclip -version
xclip version 0.12
Copyright (C) 2001-2008 Kim Saunders et al.
Distributed under the terms of the GNU GPL
edit: after some more testing it does work, but not when I copy something from opera browser

Last edited by lonk; 2012-02-14 at 17:55.