fix(niri): move the example toggle key and skip the portal in inject-probe on niri #47

Merged
xavierk merged 3 commits from fix/niri-keybind-probe into main 2026-11-06 18:29:29 +00:00
3 Commits
Author SHA1 Message Date
xavierk c9d8ee838f docs(niri): match key names case-insensitively in the conflict check
CI / security (pull_request) Successful in 1m10s
CI / lint (pull_request) Successful in 22s
CI / ai-review (pull_request) Successful in 7s
niri accepts lowercase and mixed-case key names such as mod+shift+m, so
the grep in the conflict check must ignore case too. strings comes from
binutils, which is now said in the docs.

Refs #45
2026-11-06 23:56:47 +05:30
xavierk 2a5710334b fix(niri): move the example toggle off Mod+Shift+D
CI / security (pull_request) Successful in 1m8s
CI / lint (pull_request) Successful in 23s
CI / ai-review (pull_request) Successful in 8s
Mod+Shift+D is Move Column Right in Dank Material Shell's niri binds
(dms/binds.kdl), so the shipped example competed with it silently. The
toggle moves to Mod+Shift+M, which is free in niri's stock binds and in
DMS's binds. The start and stop examples move off Mod+Shift+E, which is
stock niri's quit, to Mod+Shift+S and Mod+Shift+X.

niri validate rejects a key bound twice in one binds block but not across
blocks, so validation cannot show a conflict. The docs now give a grep
over the config tree and niri's embedded stock binds for checking a key
before binding it. The overlay pointer is corrected to Mod+Shift+Slash.
A test pins the doc and the include to one toggle key that is not
Mod+Shift+D.

Fixes #45
2026-11-06 23:54:07 +05:30
xavierk 3776c4de6e fix(scripts): skip the portal probe on niri in inject-probe
The injector never offers the RemoteDesktop portal on niri, but inject-probe
ran the portal probe unguarded and reported portal_available: true there.
The probe now reuses the injector's _is_niri_session guard: on niri it skips
the portal and reports portal_skip_reason "niri" with portal_available false.
Off niri the probe runs and reports its answer as before.

Fixes #46
2026-11-06 23:50:46 +05:30