u/SnooCompliments7914

Is it possible to prevent a window from receiving the focus?
▲ 3 r/niri

Is it possible to prevent a window from receiving the focus?

The app is a virtual keyboard: https://github.com/archisman-panigrahi/vboard

So it must be unfocused to be useful. On GNOME it somehow sets up automatically. On KDE it adds a window rule. For Niri I can have "open-focused false", but it only affects the initial state.

u/SnooCompliments7914 — 4 hours ago
🔥 Hot ▲ 65 r/kde

TIL Plasma calculates the default scaling factor based on your screen type

Always wondered why Plasma set my Laptop screen to a logic DPI of 150, instead of the "standard" 96. So here's the code:

https://invent.kde.org/plasma/kwin/-/blob/a8bb24daff4e3d731630a90b6cc0f54b95347f2f/src/outputconfigurationstore.cpp#L734

It detects if the screen is internal or external and it's size, and uses different target DPIs for laptop, phone, external monitor and TV. So a button would have different physical size in those screens, but assuming your viewing distance is also different, would result in a similar "perceived" size.

And in my case, the code somehow fails to detect a laptop lid device, so it uses phone target DPI.

u/SnooCompliments7914 — 4 days ago