Skip to content

Instantly share code, notes, and snippets.

View thenonameguy's full-sized avatar
🛠️
Preparing Schemamap.io go-live 🎉

Krisztián Szabó thenonameguy

🛠️
Preparing Schemamap.io go-live 🎉
View GitHub Profile
@thenonameguy
thenonameguy / headphone.py
Last active July 6, 2021 10:53 — forked from Monsterovich/headphone.py
NixOS Pipewire headphone jack fix
#!/usr/bin/env python
import os
import sys
from subprocess import Popen, PIPE, STDOUT
import time
HEADPHONE_EVENT = "jack/headphone"
p = Popen(["/run/current-system/sw/sbin/acpi_listen"],
stdout=PIPE, stderr=STDOUT, bufsize=1)