Skip to content

Instantly share code, notes, and snippets.

View Monsterovich's full-sized avatar
🏠
Working from home

Monsterovich

🏠
Working from home
View GitHub Profile
@Monsterovich
Monsterovich / headphone.py
Last active July 17, 2021 06:22
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(["/usr/bin/acpi_listen"],
stdout=PIPE, stderr=STDOUT, bufsize=1)
@sxiii
sxiii / p2p-vpns.md
Created September 10, 2021 07:13
P2P VPN List
#!/usr/bin/env python3
from gi.repository import GLib
from gi.repository import Gio
import os
import time
def onPrepareForSleep(conn, sender, obj, interface, signal, parameters, data):
if not parameters[0]: