You are not logged in.

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

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

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


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

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

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
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  •   Surfraw

Registered Linux User #482438

Offline

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

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

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


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

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

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

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


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

Board footer

Powered by FluxBB