How to save my custom rules for categorizing events?

I created my own rules and updated the default ones. For example, I added mpv to the video category.

Now I want to save these settings so I don’t have to fill those fields again. In case of reinstalling the system or transferring the configuration to another machine. Is it possible to do that?

1 Like

We are working on fixing that, but it is not finished yet unfortunately. Both so the rules are saved in ActivityWatch itself rather than in the browser as well as add the ability to import/export rules.

Until we fix proper support for export/import: You can manually import/export the rules by opening the browser developer console (F12) and navigating to Storage -> Local Storage. The rules are stored in the classes key.

1 Like