I finally found a program, where I can controll my g502 perfectly. It's called Piper and it is amazing. It's the best I could find for Linux mint. : r/linuxmasterrace
Which 2k DPI Mice from Amazon works with Blender in Ubuntu? - Other Software - Blender Artists Community
GMK KB5 Windows11/Linux/Ubuntu System Mini PC, Intel 11th Jasper Lake N5105 Quad Core up to 2.9GHz, 8GB + 512GB, Support WiFi & Bluetooth, EU Plug Цвет
Configure Logitech, Steelseries And Other Gaming Mice On Linux Using Piper - Linux Uprising Blog