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
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
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