
This Script works only with files you have on your local HDD and NOT with Webstreams!!!
To make this script work you need to have netcat.openbsd installed and you must have following options enabled within vlc.
at Settings / All / Interface / Main Interface tick Remote control Interface and HTTP Remote control Interface
at Settings / All / Interface / Main Interface / RC tick fake tty and at Unix socket command input type /tmp/vlc.sock
Script is called within Conky with this parameters:
${color #FF4D00}$alignc VLC${color} ${hr 2}
${font Lucida Grande:size=7}
Artist: ${alignr}${execpi 10 /pathto/vlc2conky.sh --artist}
Song: ${alignr}${execpi 10 /pathto/vlc2conky.sh --title}
Album: ${alignr}${execpi 10 /pathto/vlc2conky.sh --album}
Duration: ${alignr}${execpi 10 /pathto/vlc2conky.sh --duration}
Genre: ${alignr}${execpi 10 /pathto/vlc2conky.sh --genre}
${font}
Replace the pathto with the path where the vlc2conky.sh is located.
!!!PLEASE BE AWARE I AM A BASH NOOB AND THE CODE IS NOT PERFECT BUT IT WORKS FOR NOW!!!!
Ratings & Comments
0 Comments