aboutsummaryrefslogtreecommitdiff
path: root/modules/awesome/config.dot/awesome.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-25 11:35:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-25 11:35:19 -0300
commitd1f1d35ee981cf9f454699797d04d064c2ff8b87 (patch)
treea30f837fbe6a774cf10d0f4b552a994dddf86cb7 /modules/awesome/config.dot/awesome.link
parent20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5 (diff)
downloaddotfiles-d1f1d35ee981cf9f454699797d04d064c2ff8b87.tar.gz
dotfiles-d1f1d35ee981cf9f454699797d04d064c2ff8b87.tar.bz2
Adding awesompd only if config exists (2)
Diffstat (limited to 'modules/awesome/config.dot/awesome.link')
-rw-r--r--modules/awesome/config.dot/awesome.link/rc.lua3
1 files changed, 2 insertions, 1 deletions
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
}