parent
b65616d1cc
commit
c414473b4c
|
@ -86,6 +86,11 @@ config.core = {
|
|||
|
||||
continuous_tag_updates = true,
|
||||
|
||||
-- Format:
|
||||
-- {command, icon-name}
|
||||
--
|
||||
-- Icons files are in assets/apps,
|
||||
-- Icon names are defined in assts/apps.lua.
|
||||
bar_shortcuts = {
|
||||
{
|
||||
"thunar",
|
||||
|
@ -119,7 +124,9 @@ config.mpc = {
|
|||
enabled = true,
|
||||
|
||||
-- If your MPC server has a password, do "passwd@host"
|
||||
-- Default port is 6600, you probably won't need to change it.
|
||||
host = "localhost",
|
||||
port = 6600,
|
||||
|
||||
-- Fixed width of the mpc widget
|
||||
width = 250,
|
||||
|
|
|
@ -2,14 +2,18 @@ local util = {}
|
|||
|
||||
util.mpc_command = function(command, callback)
|
||||
awful.spawn.easy_async(
|
||||
"mpc --host " .. config.mpc.host .. " " .. command,
|
||||
"mpc --host " .. config.mpc.host .. " "
|
||||
.. "--port " .. config.mpc.port .. " "
|
||||
.. command,
|
||||
callback
|
||||
)
|
||||
end
|
||||
|
||||
util.mpc_watch = function(command, timeout, callback, widget)
|
||||
awful.widget.watch(
|
||||
"mpc --host " .. config.mpc.host .. " " .. command,
|
||||
"mpc --host " .. config.mpc.host .. " "
|
||||
.. "--port " .. config.mpc.port .. " "
|
||||
.. command,
|
||||
timeout,
|
||||
callback,
|
||||
widget
|
||||
|
|
Loading…
Reference in New Issue