ActivityWatch / aw-qt

Tray icon that manages ActivityWatch processes, built with Qt.
Mozilla Public License 2.0
27 stars 29 forks source link

Configurable available and autostart modules #47

Closed wolferCZ closed 4 years ago

wolferCZ commented 4 years ago

As a developer I would like to integrate my private watchers to the aw-qt without necessity to alter the aw-qt and maintain my own fork.

Currently aw-qt (v0.8.0b9) supports only few modules that are hard-coded in: https://github.com/ActivityWatch/aw-qt/blob/fcb59268c43d7a0f61658d78c1f6ace8ef38d012/aw_qt/manager.py#L129


Posible solutions:

Based on TODO in https://github.com/ActivityWatch/aw-qt/blob/fcb59268c43d7a0f61658d78c1f6ace8ef38d012/aw_qt/manager.py#L127

aw_qt/manager.py:

# TODO: Fetch these from somewhere appropriate (auto detect or a config file)
#       Save to config wether they should autostart or not.
_possible_modules = [
    "aw-server",
    "aw-watcher-afk",
    "aw-watcher-window",
    # "aw-watcher-spotify",
    # "aw-watcher-network"
]
  1. Available modules and modules to be started automatically will be listed in new aw-qt configuration.
  2. Autodetect available modules. Modules to be started automatically will be listed in new aw-qt configuration.

NOTE: Available modules can be separated to independent issue/story (nice to have).

ErikBjare commented 4 years ago

Seems like a duplicate of #35?

wolferCZ commented 4 years ago

Seems like a duplicate of #35?

:man_facepalming: Yes, my bad.

ErikBjare commented 4 years ago

Duplicate of #35, worked on in PR #56