Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created March 29, 2012 21:12
Show Gist options
  • Select an option

  • Save AeroNotix/2243860 to your computer and use it in GitHub Desktop.

Select an option

Save AeroNotix/2243860 to your computer and use it in GitHub Desktop.
def cmd_restart(self):
"""
Restart qtile using the execute command.
"""
try:
for group in self.groupMap:
for window in self.groupMap[group].windows:
print window
except Exception as e:
print e
self.cmd_execute(sys.executable, [sys.executable] + sys.argv)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment