Skip to content

Instantly share code, notes, and snippets.

@BrotherTill
BrotherTill / linux.js
Created June 7, 2026 10:54
stayfree linux patch to add wayland support from https://github.com/samidunimsara (added hyprland support)
import process from 'node:process';
import { promisify } from 'node:util';
import fs from 'node:fs';
import childProcess from 'node:child_process';
import path from 'node:path';
import os from 'node:os';
const execFile = promisify(childProcess.execFile);
const readFile = promisify(fs.readFile);
const readlink = promisify(fs.readlink);