Mouse settings reverting when running updates

Most times (not always) I run updates on my system the mouse settings gets “reverted”.
A simple fix is to just logout/login and my settings will be read again.
Another solution is to open mouse settings, do some change, apply, and then change back > apply and it will also “re-read” the settings.

Is there a cmdline I can use to read my mouse settings again?
Then I might be able to include a hook that runs that line during updates.