User Tools

Site Tools


crunchbang

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
crunchbang [2010/02/19 19:34] ginkocrunchbang [2010/02/19 23:30] ginko
Line 17: Line 17:
 <code python>    # Suspend <code python>    # Suspend
     def suspend(self, widget):     def suspend(self, widget):
-        os.system("gksudo pm-suspend")</code>+        # do suspend 
 +        os.system("gksudo pm-suspend") 
 +        # and then, on wake, exit 
 +        gtk.main_quit() 
 +        return False</code>
  
 <code python>        # Create suspend button <code python>        # Create suspend button
crunchbang.txt · Last modified: 2010/02/20 19:18 by ginko