Adapted configs to dell e7470 work laptop

This commit is contained in:
2017-01-25 17:27:17 +01:00
parent fd1b2a2c9d
commit fd71d6a05c
11 changed files with 73 additions and 86 deletions

View File

@@ -27,21 +27,10 @@ sz = w.get_size()
print "[DEBUG]: The size of the window is %d x %d" % sz
# Get a drawable with the size of the desktop
scr = gtk.gdk.Pixbuf( gtk.gdk.COLORSPACE_RGB,
False,
8,
sz[0],
sz[1])
scr = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, sz[0], sz[1])
# Fill it with the screenshot
scr = scr.get_from_drawable(w,
w.get_colormap(),
0,
0,
0,
0,
sz[0],
sz[1])
scr = scr.get_from_drawable(w, w.get_colormap(), 0, 0, 0, 0, sz[0], sz[1])
# Save the screenshot as png
if(scr != None):
@@ -52,7 +41,7 @@ else:
# Load the screenshot as image and blur it
iml = Image.open("/tmp/i3screen.png")
iml = iml.filter(ImageFilter.BLUR)
iml = iml.filter(ImageFilter.GaussianBlur(8))
# Save the blured screenshot and call i3lock
if(iml != None):