Skip to content

Instantly share code, notes, and snippets.

@GrabbenD
GrabbenD / README.md
Last active August 7, 2025 17:46
[Sway] VRR in fullscreen only

VRR for fullscreen apps only

The idea behind this script is to only use VRR when a application is in fullscreen mode, here's the features:

  • Has multi monitor support through a output whitelist config (I'd like this to be automatic in the future but there doesn't seem to be any way in swaymsg to identify if a output is VRR capable, one thing which comes to mind is checking EDID for VRR range).
  • Determine if VRR needs to be toggled when a application is in fullscreen mode (which is how Windows does it usually and it's a option in Hyprland). This applies to:
    • Opening a app
    • Changing focus
    • Switching workplaces
    • Going into fullscreen mode (e.g. Youtube videos in Chromium)
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active October 26, 2025 12:05
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@kj800x
kj800x / Hacking the LG Monitor's EDID.md
Last active September 25, 2025 08:22
Hacking the LG Monitor's EDID

preface: Posting these online since it sounds like these notes are somewhat interesting based on a few folks I've shared with. These are semi-rough notes that I basically wrote for myself in case I ever needed to revisit this fix, so keep that in mind.

I recently bought an LG ULTRAGEAR monitor secondhand off of a coworker. I really love it and it's been great so far, but I ran into some minor issues with it in Linux. It works great on both Mac and Windows, but on Linux it displays just a black panel until I use the second monitor to go in and reduce the refresh rate down to 60 Hz.

This has worked decent so far but there's some issues:

  • It doesn't work while linux is booting up. The motherboards boot sequence is visible just fine, but as soon as control is handed over to Linux and I'd normally see a splash screen while I'm waiting for my login window, I see nothing.
  • It doesn't work on the login screen. This would be fine if login consistently worked on my second screen, but I need to manually switch
@Rend0e
Rend0e / Fix_MCLK_Clock_Stuck_Arch_Linux_Guide.md
Created July 26, 2023 02:00
Fix AMD GPU high idle power MCLK (vram / memory clock) stuck at 96 MHz / 1000 MHz for high refresh rates on Arch Linux Wayland & Xorg

Fix AMD GPU high idle power MCLK (vram / memory clock) stuck at 96 MHz / 1000 MHz for high refresh rates on Arch Linux Wayland & Xorg

On certain resolutions & refresh rates or multi-monitor setups, you might have noticed that your GPU MCLK (vram / memory clock) is stuck at the highest clock frequency (1000 MHz) [1] [2] causing higher GPU idle power draw. On Linux kernel 6.4.x, AMDGPU MCLK (vram/memory) clocks at the lowest, causing major FPS drops while gaming [1] [2]. This is likely due to a monitor not using Coordinated Video Timings (CVT) with a low V-Blank value for the affected resolutions & refresh rates. The higher clocking behavior is due to:

[Well, the reason the clocks get forced to max in some cases is to avoid the flickering you are seeing. There is a certain latency r

@oorzkws
oorzkws / melvor-noanim.js
Created November 5, 2021 02:00
userscript for lighter CPU/GPU usage
// ==UserScript==
// @name Melvor NoAnims
// @namespace http://tampermonkey.net/
// @version 0.01/0.22.1
// @description Disables CPU/GPU/DOM intensive animations
// @author mootykins
// @match https://*.melvoridle.com/*
// @exclude https://wiki.melvoridle.com*
// @exclude https://*.melvoridle.com/index.php
// @noframes
@academo
academo / ww
Last active August 9, 2025 17:40
#!/bin/bash
# Usage: ww -f "window class filter" -c "run if not found"
# Usage: ww -fa "window title filter" -c "run if not found"
## Find and contribute to a more updated version https://github.com/academo/ww-run-raise
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
@brunoais
brunoais / proton
Last active July 17, 2025 09:21 — forked from thingsiplay/proton
Proton script
#!/bin/bash
# Execute Windows programs with Proton from Steams installation folder, without
# starting Steam client.
#
# 1. Create a directory for Proton environment to run in. As an example make a
# folder "proton" in your home directory. This folder must exist in order
# to make Proton work.
#
# 2. Point the variable "env_dir" in this script to that folder or...
@srithon
srithon / kde-qdbus.org
Last active June 30, 2024 21:48
A list of all the KDE-related DBus commands on my machine

This document was generated by running the following script

#!/bin/fish

for service in (qdbus "org.kde.*")
  echo "* $service"

  for path in (qdbus "$service")
    echo "** $path"
fun main() {
val prefix = "kwriteconfig5 --file \$HOME/.config/kde.org/UserFeedback.org.kde.plasmashell.conf"
val config = """
[Greeter][Wallpaper][org.kde.image][General]
Image=file:///home/shalva/Pictures/lock-screen-wallpaper.jpg
""".trimIndent()
var configCommand = StringBuilder()
@hinell
hinell / Fix Broken EDID Guide.md
Last active June 9, 2025 05:25
Guide how to achieve better resolution with broken EDID. Two methods are used: xorg.conf config and kernel params.

Fix Broken EDID Guide

This guide outlines replacement of the broken EDID metadata file for the device in Linux Operating Systems.

Last-Modified: Sunday, April 11, 2021

• • •