My Suse

What I have learn so far about Linux and Suse

Saturday, September 16, 2006

How to save the name of the music that is playing in amaroK


Here's a bash script that reads and saves (appends) the title of current music to a file in the Desktop, this is useful if you're listenning to a radio and want to save the title for later downloading.

#!/bin/bash

dcop amarok player title >> ~/Desktop/musicas.txt


Save the file as ~/bin/savemusic and then chmod +x ~/bin/savemusic
After that, just run savemusic or create a icon in startmenu or set a keyboard command to call it.

0 Comments:

Post a Comment

<< Home