This is a small python tool to extract the json file stored inside the "settings.db" file of the Logitech G Hub app. This allows you to update the json and then replace the file blob inside the db with the new json.
Tested on Windows and macOS.
You need Python installed. I've tested with 3.9 but I think 2.x versions should work too.
Simply follow the instructions after executing the py file.
In summary: It extracts the JSON. It asks you to close Logitech G Hub then, once it's done, you can press Enter to continue. The script open it into your editor (the default app per OS settings for json files, or the OS will let ask you what to open it with). You edit the file as you like. Then, you save the file and close the editor. As soon as you close the editor, it automatically insert the modified JSON into Logitech G Hub sqlite db. When you open Logitech G Hub again, it should reflects the changes you've made.
In a cmd or PowerShell window, type the following in the same folder as the py file.
(You can "Shift+Right Click" into an explorer window to open a cmd/PowerShell window in the same folder):
python ghub-settings.py
Open Terminal
cd path/where/you/downloaded/the/py/file
python ghub-settings.py