Feeds:
Posts
Comments

Archive for April, 2008

A little bash script takes care of deleting the current song, you just have to setup a shortcut somewhere.

#!/bin/bash
path=`dcop amarok player path`
if [[ $path != "" ]] # if player is currently stopped
then
        name=`basename "$path"`
        mv "$path" "$MUSICTRASH/$name"
        echo "Song moved to $MUSICTRASH" # output for usage in terminal
        dcop amarok player next # play next song to notify that something has happend
fi

And set the config variable where you want to move your trashed music files:

File: .bashrc

export MUSICTRASH="/mnt/data/music/.trash"

bash is so powerful, it’s always a pleasure 😉

Advertisements

Read Full Post »

Unicode is great!

Check out the power of unicode. There is even a snowman symbol (U+2603):

P.S. This only works on systems with unicode support!

Read Full Post »