-local utils = { }
+local utils = { }
+local io = { popen = io.popen }
+local string = { match = string.match,
+ lower = string.lower}
+
utils.rules = { }
utils.globalkeys = { }
end
end
+function utils.get_default_sink()
+ local f = io.popen('ponymix defaults --short')
+ line = f:read('*l')
+ f:close()
+ return string.match(line, "^sink%s*%d*%s*(.-)%s")
+end
function utils.joinTables(t1, t2)
for k,v in ipairs(t2) do table.insert(t1, v) end return t1