mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 11:12:31 +00:00
Merge pull request #171 from kevinisaac/master
Fixed the `global variable mpd is nill` error
This commit is contained in:
commit
8950fcf4a3
|
@ -180,23 +180,23 @@ function () awful.spawn(theme.musicplr) end)))
|
||||||
prev_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
prev_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc prev")
|
awful.spawn.with_shell("mpc prev")
|
||||||
mpd.update()
|
theme.mpd.update()
|
||||||
end)))
|
end)))
|
||||||
next_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
next_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc next")
|
awful.spawn.with_shell("mpc next")
|
||||||
mpd.update()
|
theme.mpd.update()
|
||||||
end)))
|
end)))
|
||||||
stop_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
stop_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
||||||
function ()
|
function ()
|
||||||
play_pause_icon:set_image(theme.play)
|
play_pause_icon:set_image(theme.play)
|
||||||
awful.spawn.with_shell("mpc stop")
|
awful.spawn.with_shell("mpc stop")
|
||||||
mpd.update()
|
theme.mpd.update()
|
||||||
end)))
|
end)))
|
||||||
play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1,
|
||||||
function ()
|
function ()
|
||||||
awful.spawn.with_shell("mpc toggle")
|
awful.spawn.with_shell("mpc toggle")
|
||||||
mpd.update()
|
theme.mpd.update()
|
||||||
end)))
|
end)))
|
||||||
|
|
||||||
-- Battery
|
-- Battery
|
||||||
|
|
Loading…
Reference in a new issue