+function utils.spawn_terminal(prg, cprop, cb)
+ local join = require("gears.table").join
+ local term_cmd = {terminal}
+ if cprop and cprop.instance then
+ if terminal:match("rxvt") then
+ term_cmd = join(term_cmd, {"-name", cprop.instance})
+ end
+ end
+ awful.spawn(join(term_cmd, {"-e", prg}), cprop, cb)
+end
+