Create a gist now

Instantly share code, notes, and snippets.

toggle gtk window decorations
#! /usr/bin/python2
import gtk.gdk
w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0] )
w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1
# now bind this to super-r or something

This comment has been minimized.

Show comment
Hide comment

emersonmx Dec 23, 2017

Thanks 😄

Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment