Rewrote MPD interface
This commit is contained in:
10
bin/init.lua
10
bin/init.lua
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user