firecat53 / networkmanager-dmenu

Control NetworkManager via dmenu
MIT License
783 stars 74 forks source link

Case insensitive rofi? #106

Closed agenbite closed 2 years ago

agenbite commented 2 years ago

Hi, thanks for this wonderful solution to all my troubles with nm-applet. There's a minor annoyance that I'm sure it's easy to solve. Rofi works usually in case insensitive mode, but for some reason, with networkmanager-dmenu it does like to select in a case-sensitive style. What can I do about it? I've tried to check the code and I don't really see that rofi is being called with the -case-sensitive option, so I don't really know what's the deal here. Any help would be appreciated.

agenbite commented 2 years ago

I've found the solution: we need to call dmenu with the -i option in line 99:

"rofi": ["-dmenu", "-i", "-p", str(prompt), "-l", str(num_lines)],

Maybe it should be default, since afaik all other rofi applications are that way.