Skip to content

Instantly share code, notes, and snippets.

View hex20dec's full-sized avatar
🎯
Super Hyper Laser Focused

hex20dec

🎯
Super Hyper Laser Focused
View GitHub Profile
@hex20dec
hex20dec / Safe resolution adjustment.md
Last active November 28, 2025 21:00
Safe resolution adjustment

I spent the better part of a weekend trying to connect to my home computer through remote desktop tools. I tried Anydesk and then I tried Teamviewer and later I even tried Nomachine. Every single one of them fought me on the screen resolution. No matter what I selected the image looked stretched or squeezed or just strangely blurry. It felt like the computer and the remote software were speaking two completely different languages.

After a while I realized that the only reliable approach was to figure out the correct resolution myself. I tested one setting after another until I finally found a sweet spot that actually looked right on my monitor. It was far from elegant but at least it worked.

What annoyed me even more was the need to manually add new resolution profiles to xrandr. Doing it by hand over and over again felt like a tiny repetitive chore that slowly drained my patience. I wanted something cleaner and I wanted it to be automatic. So I wrote a small script that handled everything for me. Now I can