Rewrote MPD interface

This commit is contained in:
2022-04-24 12:22:44 -07:00
parent 36041d8011
commit 717d7f3db3
8 changed files with 308 additions and 209 deletions

View File

@ -39,15 +39,5 @@ return {
--awful.spawn("flameshot gui -p \"" .. conf.screenshot_dir .. "\"", false)
awful.spawn("flameshot gui", false)
end
},
mpc = {
watch = function(command, timeout, callback, widget)
awful.widget.watch("mpc --host " .. conf.mpd_host .. " " .. command, timeout, callback, widget)
end,
command = function(command, callback)
awful.spawn.easy_async("mpc --host " .. conf.mpd_host .. " " .. command, callback)
end
}
}