Fixed the `global variable mpd is nill` error
This commit is contained in:
parent
8dbf457546
commit
095a91d3e9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue