From 095a91d3e9862d0f1d40f64c8fb9736e848dea9d Mon Sep 17 00:00:00 2001 From: Kevin Isaac Date: Wed, 8 Mar 2017 21:13:16 +0530 Subject: [PATCH] Fixed the `global variable mpd is nill` error --- themes/holo/theme.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/holo/theme.lua b/themes/holo/theme.lua index e011543..6a6083f 100644 --- a/themes/holo/theme.lua +++ b/themes/holo/theme.lua @@ -180,23 +180,23 @@ function () awful.spawn(theme.musicplr) end))) prev_icon:buttons(awful.util.table.join(awful.button({}, 1, function () awful.spawn.with_shell("mpc prev") - mpd.update() + theme.mpd.update() end))) next_icon:buttons(awful.util.table.join(awful.button({}, 1, function () awful.spawn.with_shell("mpc next") - mpd.update() + theme.mpd.update() end))) stop_icon:buttons(awful.util.table.join(awful.button({}, 1, function () play_pause_icon:set_image(theme.play) awful.spawn.with_shell("mpc stop") - mpd.update() + theme.mpd.update() end))) play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1, function () awful.spawn.with_shell("mpc toggle") - mpd.update() + theme.mpd.update() end))) -- Battery