Doing a “Show Desktop” using Python’s libwnck bindings

Quick tip: you can do a Show Desktop from a script (from Python, in this case), with: python -c "import gtk,wnck,gobject; s=wnck.screen_get_default(); s.toggle_showing_desktop(True); gobject.idle_add(gtk.main_quit); gtk.main()"

More in the discussion (powered by webmentions)

  • (no mentions, yet.)