Skip to content

Instantly share code, notes, and snippets.

View pojntfx's full-sized avatar
💭
🌅

Felicitas Pojtinger pojntfx

💭
🌅
View GitHub Profile
@pojntfx
pojntfx / main.sh
Created February 3, 2026 16:14
Set up Weston on Alpine Linux on desktops with old GPUs that lack Mesa support
#!/bin/bash
doas setup-wayland-base
apk add weston weston-backend-drm seatd weston-backend-wayland weston-shell-desktop weston-terminal font-dejavu
doas adduser $USER video
doas adduser $USER seat
doas rc-service seatd start
@pojntfx
pojntfx / main.sh
Last active February 3, 2026 16:02
Set up Phosh and phrog on Alpine Linux on desktops with old GPUs that lack Mesa support
# phrog starts, phosh is still stuck in an endless loading loop for some reason
#!/bin/bash
doas apk add dbus elogind polkit-elogind seatd
doas apk add phosh phoc squeekboard greetd-phrog
doas apk add phosh-mobile-settings gnome-backgrounds
doas rc-update add dbus default
doas rc-update add elogind default
doas rc-update add seatd default
@pojntfx
pojntfx / README.md
Last active January 27, 2026 09:18
Setup High-Performance Nextcloud Talk Backend and Recording Server on Hetzner

Nextcloud High Performance Backend and Recording Setup

Commercial hosted providers (I recommend using these instead of hosting it yourself, esp. if you're setting this up for someone else):

This pad is heavily based on https://arnowelzel.de/en/nextcloud-talk-high-performance-backend-with-docker - it's probably best to check if there were any changes in that article before you proceede here.

High-Performance Backend

@pojntfx
pojntfx / main.sh
Created December 23, 2025 15:49
Allow Distrobox/Toolbox containers to access USB devices
#!/bin/bash
# This is obviously not safe, but the only workaround I've found for apps that don't use the USB portal (https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Usb.html)
echo 'KERNEL=="tty*", MODE="0777"' | sudo tee /etc/udev/rules.d/99-tty-permissions.rules > /dev/null
sudo udevadm control --reload-rules
sudo udevadm trigger --subsystem-match=tty
@pojntfx
pojntfx / build-and-run.sh
Last active August 6, 2025 19:57
Toggle active noise cancelling mode for AirPods on Linux with MagicPodsCore
#!/bin/bash
git clone https://github.com/steam3d/MagicPodsCore.git
cd MagicPodsCore
ls
mkdir -p build
cd build
cmake ..
make -j$(nproc)
./MagicPodsCore
@pojntfx
pojntfx / README.md
Last active January 4, 2026 14:00
Forward multiple Wayland applications via a single `waypipe` connection

Extra QEMU arguments to enable headless virgl/hardware accelerated rendering:

-device vhost-vsock-pci,guest-cid=3 -display egl-headless,gl=on

On client:

rm -f /tmp/socket-local; waypipe -s /tmp/socket-local client # TCP
@pojntfx
pojntfx / README.md
Created July 7, 2025 00:57
Setup Rootful Podman on GNOME OS from within Toolbox

Run on host:

sudo visudo
pojntfx ALL=(ALL) NOPASSWD: /usr/bin/podman

Run inside of Toolbox:

@pojntfx
pojntfx / main.sh
Last active December 20, 2025 12:43
Setup Tailscale on an immutable Linux system (e.g. GNOME OS or Fedora Silverblue)
#!/bin/bash
sudo podman run -d \
--name=tailscaled \
--restart=always \
-v tailscale-data:/var/lib/tailscale \
-v /dev/net/tun:/dev/net/tun \
-v /run:/run \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/group:/etc/group:ro \
@pojntfx
pojntfx / main.sh
Created July 5, 2025 00:29
OCR Linux screen contents on GNOME OS (Wayland and Flatpak), then copy result to clipboard
#!/bin/bash
bash -c 'flatpak run com.github.dynobo.normcap --cli-mode | wl-copy'
@pojntfx
pojntfx / extensions.json
Created July 5, 2025 00:19
Personal VSCodium Settings and Extensions
[
{
"identifier": {
"id": "tomoki1207.pdf",
"uuid": "6db08635-0c6a-45ba-9a4b-8c3e192c63c2"
},
"version": "1.2.2",
"location": {
"$mid": 1,
"path": "/home/pojntfx/.vscode-oss/extensions/tomoki1207.pdf-1.2.2-universal",