From d1f1d35ee981cf9f454699797d04d064c2ff8b87 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Mar 2013 11:35:19 -0300 Subject: Adding awesompd only if config exists (2) --- modules/awesome/config.dot/awesome.link/rc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/awesome/config.dot/awesome.link/rc.lua b/modules/awesome/config.dot/awesome.link/rc.lua index b4a1db2..554c42e 100644 --- a/modules/awesome/config.dot/awesome.link/rc.lua +++ b/modules/awesome/config.dot/awesome.link/rc.lua @@ -62,6 +62,7 @@ dofile(configdir .. "/leds.lua") dofile(configdir .. "/volume.lua") if file_exists(homedir .. "/.custom/awesome/awesompd.lua") then + awesompd = true dofile(configdir .. "/awesompd.lua") end -- }}} @@ -173,7 +174,7 @@ for s = 1, screen.count() do s == 1 and mysystray or nil, volume_widget, myledbox, - musicwidget.widget, + awesompd == true and musicwidget.widget or nil, mytasklist[s], layout = awful.widget.layout.horizontal.rightleft } -- cgit v1.2.3