Strona 1 z 1
Muzyka w conky
: 02 czerwca 2008, 15:29
autor: wilk_DB
Szukam jakiegoś skryptu który pozwoli mi wyświetlać mi nazwę granej właśnie piosenki. Miałem już taki skrypt rhythmbox, ale przy wyświetlaniu piosenki o długim tytule conky mi się rozszerzał:
Kod: Zaznacz cały
#!/bin/bash
zmienna1=`rhythmbox-client --print-playing | wc -m`
if [ $zmienna1 -le 10 ]; then
echo `rhythmbox-client --print-playing`
else
echo `rhythmbox-client --print-playing | cut -b 1-40`...
fi
: 02 czerwca 2008, 15:38
autor: yantar
Zalezy do jakiego playera, bo kilka z nich conky obsluguje standardowo - audacious, moc, mpd, XMMS, bmp.
: 02 czerwca 2008, 15:43
autor: wilk_DB
a jak ustawić na xmms?
: 02 czerwca 2008, 18:47
autor: yantar
z
Kod: Zaznacz cały
xmms2_artist
Artist in current XMMS2 song
xmms2_album
Album in current XMMS2 song
xmms2_title
Title in current XMMS2 song
xmms2_genre
Genre in current XMMS2 song
xmms2_comment
Comment in current XMMS2 song
xmms2_decoder
Decoder plugin used
xmms2_transport
Transport plugin used
xmms2_url
Full path to current song
xmms2_tracknr
Track number in current XMMS2 song
xmms2_bitrate
Bitrate of current song
xmms2_id
XMMS2 id of current song
xmms2_duration
Duration of current song
xmms2_elapsed
Song’s elapsed time
xmms2_size
Size of current song
xmms2_percent
Percent of song’s progress
xmms2_status
XMMS2 status (Playing, Paused, Stopped, or Disconnected)
xmms2_bar (height),(width)
Bar of XMMS2’s progress
xmms2_smart
Prints the song name in either the form "artist - title" or file