2e3s / awatcher

Activity and idle watchers
Mozilla Public License 2.0
126 stars 4 forks source link

aw-awatcher doesn't seem to follow the "Always count as active pattern" rule #20

Closed validusername19 closed 3 months ago

validusername19 commented 3 months ago

Hello! I tried adding this pattern YouTube|Jellyfin|jellyfin|com.github.iwalton3.jellyfin-media-player|Jellyfin Media Player to the "Always count as active pattern" rule, but aw-awatcher creates AFK events anyway.

Screenshot 2024-05-20 at 15-21-24 ActivityWatch

Am I doing something wrong? I'm using ActivityWatch v0.12.2 with external aw-watcher v0.2.6 module on Debian 12 with KDE Plasma on Wayland.

By the way, thanks a lot for maintaining this project!

2e3s commented 3 months ago

Hello, this setting is in ActivityWatch UI, so the watcher doesn't handle it. The AFK event is always created, but the UI may not count it as AFK time for the setting.

The setting is a regexp as I understand, and com.github.iwalton3.jellyfin-media-player has a few special characters. You could try com\.github\.iwalton3\.jellyfin\-media\-player instead. Or maybe just remove it competely from the string, jellyfin may be enough.

validusername19 commented 3 months ago

I tried only using com\.github\.iwalton3\.jellyfin\-media\-player which didn't work, and then only jellyfin which didn't work as well. Then I tried using your awatcher-bundle with these patterns one at a time, but it didn't work as well. Does this setting work for you? If so, then what version of ActivityWatch are you using?

validusername19 commented 3 months ago

Ah, my bad! This setting only applies to the "Activity" tab and not "Timeline". Thanks for trying to help me out, though!