Skip to content

Instantly share code, notes, and snippets.

@felikcat
felikcat / README.adoc
Last active December 30, 2025 21:39
Unmaintained instructions for the Linux section of my Resonite wiki

Using Gamescope / a GNOME tip if you use fractional display scaling

Gamescope can be used to run Resonite at full resolution on say a 3840x2160 display, instead of 2560x1440 as mandated by 150% fractional scaling.
This 2560x1440 resolution limit on 4K displays without Gamescope is due to GNOME’s lack of support for native scaling through XWayland.

For Ubuntu 24.10, follow my instructions on how to compile and install Gamescope.

Through Steam’s library, here’s an example of the launch options you could give Resonite: gamescope -e -f -W 3840 -H 2160 -r 120 — %command% -LoadAssembly Libraries/ResoniteModLoader.dll -DoNotAutoLoadHome -SkipIntroTutorial

@felikcat
felikcat / README.adoc
Last active November 4, 2024 20:54
Build & install the latest Gamescope for Ubuntu 24.10 (Oracular Oriole)

How-to

Install the dependencies:
sudo apt install libbenchmark1.8.3 libdisplay-info2 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev wayland-protocols libvulkan-dev libwayland-dev libx11-dev cmake pkg-config meson libxdamage-dev libxcomposite-dev libxcursor-dev libxxf86vm-dev libxtst-dev libxkbcommon-dev libdrm-dev libpixman-1-dev libdecor-0-dev glslang-tools libbenchmark-dev libsdl2-dev libglm-dev libeis-dev libavif-dev libluajit-5.1-dev

Download the Gamescope repository and all its submodules:
git clone https://github.com/ValveSoftware/gamescope.git --recursive

Enter the newly created 'gamescope' directory:
cd gamescope

@felikcat
felikcat / GNOME.sh
Created October 14, 2023 08:12
Dux -> GNOME installer
#!/bin/bash
set +H
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}" && GIT_DIR=$(git rev-parse --show-toplevel)
source "${GIT_DIR}/scripts/GLOBAL_IMPORTS.sh"
source "${GIT_DIR}/configs/settings.sh"
ConfigGDM() {
@felikcat
felikcat / Enforce_Quad9_DoH.ps1
Created October 6, 2023 10:00
Windows 11 -> High-quality example for setting DNS-over-HTTPS using the Quad9 DNS servers, with PowerShell
$NET_ALIAS = (Get-NetAdapter -Physical)
$NET_DEVID = $NET_ALIAS.InterfaceGuid
$IP = @("9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9")
$IP.ForEach({
# We're not removing the same DoH entries if it already exists; hence "-ErrorAction SilentlyContinue".
Add-DnsClientDohServerAddress -ServerAddress $_ -DohTemplate 'https://dns.quad9.net/dns-query' -AllowFallbackToUdp 0 -AutoUpgrade 1 -ErrorAction SilentlyContinue
})
$NET_ALIAS.ForEach({