hali,
ítam egy ilyet ha valaki esetleg rajtam kívül abban a betegségben szenvedne, hogy egyszerre használ rendszeresen valknutot és exaile-t. persze ehhez a legújabb valknut (dcgui) kell, ami már tud külső scripteket futtatni. link: http://wxdcgui.sourceforge.net
[code]
#!/bin/sh
# this is a simple script with exaile command line options
# to print out current song playing in exaile music player
# other options:'man exaile'
# the script written by sumo (husumo@gmail.com)
# alternatively we can use 'exaile -q' command, but this isn't variable
# example:
# exaile(0.2.10) playing: ["A Little Bit Of Ecstasy - Jacelyn Enriquez" by Roxbury] :: (18%) [0:47]of[3:59]
PROG="exaile"
VERSION=`${PROG} --version | grep Exaile | cut -d " " -f 3`
TITLE=`exaile --get-title`
ARTIST=`exaile --get-artist`
LENGTH=`exaile --get-length`
PREC=`exaile --query | grep position: | cut -d "%" -f 2 | awk '{print $1}'`
POS=`exaile --query | grep position: | cut -d "%" -f 2 | awk '{print $2}'`
echo "${PROG}(${VERSION}) playing: [\"${TITLE}\" by ${ARTIST}] :: (${PREC}%) ${POS}of[${LENGTH}]"
[/code]
enjoy