You are not logged in.

#1 2013-07-24 08:15:37

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 309

[SOLVED] Awesome: connect to MPD on server

Hi awesome users.

I hope someone here can shed light on this for me, I am trying to setup a vicious widget to connect to my remote mpd server but alas I cannot work out where I need to put the hostname (192.168.1.250)

here is what I have:

-- MPD Widget
mpdwidget = wibox.widget.textbox()
mpdicon = wibox.widget.imagebox()
mpdicon:set_image(theme.confdir .. "/widgets/note.png")

vicious.register(mpdwidget, vicious.widgets.mpd,
function(widget, args)
	-- play
	if (args["{state}"] == "Play") then
		return red .. args["{Title}"] .. coldef .. colwhi .. " - " .. coldef .. colwhi  .. 
		args["{Artist}"] .. coldef
	-- pause
	elseif (args["{state}"] == "Pause") then
		return red .. "mpd</span>" .. colwhi .." paused</span>"
	-- stop
	elseif (args["{state}"] == "Stop") then
		return red .. "mpd</span>" .. colwhi .." stopped</span>"
	-- not running
	else
		return red .. "mpd</span>" .. colwhi .." off</span>"
	end
	end, 1)

Thanks for any assistance, your awesome wink

sorry if this is the wrong place if so mod's please delete & I shall make a thread.

Last edited by t0m5k1 (2013-07-24 10:30:22)


Optiplex 790, Intel Core i3-2100 CPU @ 3.10GHz 16Mb Corsair Vengeance 1333Mhz - GeForce 970 - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#2 2013-07-24 08:22:36

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,329
Website

Re: [SOLVED] Awesome: connect to MPD on server

I'll split it our for you: Artwork & Screenshot threads are not for support...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#3 2013-07-24 08:37:32

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 309

Re: [SOLVED] Awesome: connect to MPD on server

jasonwryan wrote:

I'll split it our for you: Artwork & Screenshot threads are not for support...

thanks Jason & apologies


Optiplex 790, Intel Core i3-2100 CPU @ 3.10GHz 16Mb Corsair Vengeance 1333Mhz - GeForce 970 - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

#4 2013-07-24 10:30:07

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 309

Re: [SOLVED] Awesome: connect to MPD on server

SOLVED:

had to edit

/usr/share/lua/5.2/vicious/widgets/mpd.lua

changed 127.0.0.1 to 192.168.1.250

all works


Optiplex 790, Intel Core i3-2100 CPU @ 3.10GHz 16Mb Corsair Vengeance 1333Mhz - GeForce 970 - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820   Last FM

Offline

Board footer

Powered by FluxBB