]> gitweb.fluxo.info Git - metadot.git/commitdiff
Adding awesompd only if config exists (2)
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 25 Mar 2013 14:35:19 +0000 (11:35 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 25 Mar 2013 14:35:19 +0000 (11:35 -0300)
modules/awesome/config.dot/awesome.link/rc.lua

index b4a1db2eb59851aaa2b6eff4755ad1b4c92fadf5..554c42ed1156eaaf5559b3a2792f7a4e124c4bb9 100644 (file)
@@ -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
     }