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!
apt-get install libxmu6
#!/bin/sh cd /media/mmc1/Videos youtube-dl-x --no-part -f 5 -o "%(stitle)s.%(ext)s" `xclip -out`
Nokia-N900:~# xclip -version xclip version 0.12 Copyright (C) 2001-2008 Kim Saunders et al. Distributed under the terms of the GNU GPL