OpenRGB is an RGB configuration program. It supports an incredible number of devices, varying heavily in type, but the interface and options leave much to be desired compared to specially designed software, including any configuration beyond RGB, such as DPI and button mapping.
Solaar is a Logitech device configuration program, and it can be useful for changing device-specific settings that you wouldn't find in other programs.
Polychromatic is Razer's own dedicated open-source program for Razer devices, giving all the functionality of the official Razer app in a Linux-native, FOSS app.
Piper is a gaming mouse configuration program, and most gaming mice are supported by it. To check if your mouse is compatible, go here.
VIA is a QMK firmware keyboards configuration program. To check if your keyboard is compatible, just go here.