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