Skip to content

Instantly share code, notes, and snippets.

@shadow-identity
Created December 12, 2013 07:10
Show Gist options
  • Save shadow-identity/7924231 to your computer and use it in GitHub Desktop.
Save shadow-identity/7924231 to your computer and use it in GitHub Desktop.
does not work
glib.timeout_add(100, self.new_title)
# glib.timeout_add(100, self.worker)
# self.worker()
def new_title(self):
window = False
while not window:
window = wnck.screen_get_default().get_active_window()
title = window.title()
if self.title != title:
self.title = title
print self.title
return True
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment