../notes
source

I'm using wayland because of windows

Published 2026-07-09

Windows is terrible, but $newJob uses it. Luckily I still get to use emacs. I’m doing this through WSL2 because that’s the least-painful way to use windows… but the wslg wayland weston compositor is somewhat buggy. It often has mis-matched fullscreen monitor dimensions and poor integration with other windows™windows.

so! I started using a terminal from windows (alacritty), with emacs -nw. I started another curious journey to use terminal emacs everywhere. All hunky dory, right? wr0ng!

what? “spiffy emacs window integration” == a merging of wm window focus and emacs window focus commands into a single keybind. Make it natural to jump in a direction across either an emacs frame or top level view without switching contexts for your fingers. People have similar ideas for tmux, eg vim-tmux-navigator.

You see, osc52 is a way to read and write the clipboard with a terminal escape code. When should one read the system clipboard? I’m doing so on frame focus. And it turns out that sxhkd causes the current X window to lose focus when a bound keybinding is hit. But now focus and clipboard sync are timed, so my yank gets overridden when window switching! nooooooooooooooooooooooooooooo

That’s okay I’ve been curious about niri for awhile anyway. It seems hitting bound keys there doesn’t snag focus (I suppose compositor has more control than in X-land), so I’ve been testing the waters there for a few months now. Foot is very comfy over there, and has a sane osc52 limit (gigabytes), and I’ve been enjoying terminal font options for smooshing go mono into a narrower size.