Skip to content

Instantly share code, notes, and snippets.

@augustin64
augustin64 / hyprland_monitor_setup.py
Last active April 22, 2025 14:54
Setup multi-monitor on laptop hyprland easily !
#!/home/augustin64/.venv/global/bin/python3
import subprocess
import argparse
import json
import sys
import enquiries
def main(internal_display, ext_name, side, interactive=False):
output = subprocess.check_output(["hyprctl", "monitors", "-j"]).decode("utf-8")
// ==UserScript==
// @name Pédantix/Cémantix helper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prefill Pédantix, copy cemantix if you want
// @author augustin64
// @match https://cemantix.certitudes.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=certitudes.org
// @grant none
// ==/UserScript==
@augustin64
augustin64 / raspberrypi_fan.py
Created October 26, 2024 14:05
Activate RPI's fan based on its temperature, and define certain off hours
import RPi.GPIO as GPIO
import subprocess
import datetime
import time
SLEEPING_PERIOD=(21, 7)
MAX_TEMP=50
GPIO.setmode(GPIO.BOARD)
GPIO.setup(8, GPIO.OUT)