Skip to content

Instantly share code, notes, and snippets.

View bergutman's full-sized avatar
💩
Writing shit code

Ber Gutman bergutman

💩
Writing shit code
  • Nice try CIA
View GitHub Profile
@ssokolow
ssokolow / x11_watch_active_window.py
Last active February 6, 2024 22:50
python-xlib example which reacts to changing the active window
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
Requires:
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.