Skip to content

Instantly share code, notes, and snippets.

@NiciTheNici
NiciTheNici / py3lock.py
Created February 1, 2022 08:10 — forked from Airblader/py3lock.py
Obscure only actual windows for i3lock
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# vim:ts=2:sw=2:expandtab
import os
import xcb
from xcb.xproto import *
from PIL import Image
XCB_MAP_STATE_VIEWABLE = 2