Skip to content

Instantly share code, notes, and snippets.

View da-rth's full-sized avatar
🍉
Watermelon

Daniel A da-rth

🍉
Watermelon
  • Scotland, United Kingdom
  • 09:45 (UTC +01:00)
View GitHub Profile
@da-rth
da-rth / komorebi_named_pipe.py
Created October 25, 2021 18:09
An example of how to have komorebi subscribe and send events to a named pipe in python
import win32pipe
import win32file
import pywintypes
import subprocess
import json
import time
KOMOREBI_BUFF_SIZE = 64 * 1024
KOMOREBI_PIPE_NAME = "yasb"