def chromix_raw(cmd, response=True): final = "chromix raw {0}".format(cmd) result = nix.run(final) if response: if result: return json.loads(result) else: return 0
def tab_removeCurrent(): # url = tab_getCurrent()['url'] # cmd = "chromix with {0} close".format(url) cmd = "chromix with current close" nix.run(cmd)