Cleaner async, music-client aliased to go trough awesome

This commit is contained in:
Thomas Forgione
2017-10-20 11:38:23 +02:00
parent 052e945250
commit f082d6c5a5
2 changed files with 31 additions and 15 deletions

View File

@@ -27,9 +27,9 @@ local function set_text(text)
end
end
ret.execute_command = function(command)
ret.execute_command = function(command, arg)
awful.spawn.easy_async('music-client ' .. command, function(stdout, stderr, reason, code)
awful.spawn.easy_async({'music-client', command, arg}, function(stdout, stderr, reason, code)
local text = su.split(stdout, '\n')
local active_command =