Muzyka w conky

Ogólne pytania dotyczące systemu
wilk_DB
Beginner
Posty: 119
Rejestracja: 02 maja 2008, 18:40

Muzyka w conky

Post 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
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

Zalezy do jakiego playera, bo kilka z nich conky obsluguje standardowo - audacious, moc, mpd, XMMS, bmp.
wilk_DB
Beginner
Posty: 119
Rejestracja: 02 maja 2008, 18:40

Post autor: wilk_DB »

a jak ustawić na xmms?
yantar
Member
Posty: 1225
Rejestracja: 07 czerwca 2007, 21:15
Lokalizacja: Rzeszów

Post autor: yantar »

z

Kod: Zaznacz cały

man conky

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
ODPOWIEDZ