From c9d8ee838f0f4d632aef58b94ee448882d943cf0 Mon Sep 17 00:00:00 2001 From: Xavier Karma Date: Fri, 6 Nov 2026 23:56:47 +0530 Subject: [PATCH] docs(niri): match key names case-insensitively in the conflict check 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 --- docs/NIRI.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/NIRI.md b/docs/NIRI.md index b1fc2a5..da2c34a 100644 --- a/docs/NIRI.md +++ b/docs/NIRI.md @@ -70,11 +70,12 @@ toggle bind will match: ```bash KEY_RE='(Mod|Super)\+Shift\+M([[:space:]{]|$)' # the key you want to check -grep -rnE --include='*.kdl' "$KEY_RE" ~/.config/niri/ -strings "$(command -v niri)" | grep -E "^[[:space:]]*(//[[:space:]]*)?$KEY_RE" +grep -rniE --include='*.kdl' "$KEY_RE" ~/.config/niri/ +strings "$(command -v niri)" | grep -iE "^[[:space:]]*(//[[:space:]]*)?$KEY_RE" ``` -The first command searches your config. `~/.config/niri/` holds +Matching ignores case, because niri also accepts `mod+shift+m`. `strings` +comes from binutils. The first command searches your config. `~/.config/niri/` holds `config.kdl` and the DMS-managed `dms/binds.kdl`, which `config.kdl` includes. `--include='*.kdl'` skips the `binds.kdl.pre-*` backups. If you include files from elsewhere, add their paths. The second command searches