An ActivityWatch watcher for MPD.
|Kristian Vos f116f26201 Small changes for README and to allow building||5 months ago|
|aw_watcher_mpv||5 months ago|
|.gitignore||5 months ago|
|Makefile||5 months ago|
|README.md||5 months ago|
|aw-watcher-mpv.spec||5 months ago|
|requirements.txt||5 months ago|
An ActivityWatch watcher for MPV.
Based of off aw-watcher-spotify and aw-watcher-mpv.
pip install -r requirements.txt
python main.py --testing
Make sure you have pyinstaller installed before you start.
pip install -U pyinstaller
dist/aw-watcher-mpv is your outputted folder
To install aw-watcher-mpv, first build it, then follow the below steps to install and automatically start the watcher when ActivityWatch starts.
cp -R dist/aw-watcher-mpv /opt
#!/bin/bash /opt/aw-watcher-mpv/aw-watcher-mpv "$@"
[aw-qt] autostart_modules = ["aw-server", "aw-watcher-afk", "aw-watcher-window", "aw-watcher-mpv"]
To configure settings for aw-watcher-mpv such as the socket file location and ActivityWatch poll time, first run the application once, and then edit
This watcher works by connecting to an MPV socket file. By default, MPV does not use a socket file, so to use this you need to use a special argument when running MPV. You can do this manually by adding
--input-ipc-server=/tmp/mpv-socket, or you can also add this in MPV's config file(s), for example by adding