An ActivityWatch watcher for MPD.
Kristian Vos 2c94c83dec Updated README and allow more arguments to fix build issues | il y a 1 an | |
---|---|---|
aw_watcher_mpd | il y a 1 an | |
.gitignore | il y a 2 ans | |
Makefile | il y a 2 ans | |
README.md | il y a 1 an | |
aw-watcher-mpd.spec | il y a 2 ans | |
requirements.txt | il y a 2 ans |
An ActivityWatch watcher for MPD.
Based of off aw-watcher-spotify
pip install -r requirements.txt
aw-qt --testing
cd aw_watcher_mpd
python main.py --testing
Make sure you have pyinstaller installed before you start.
pip install -U pyinstaller
dist/aw-watcher-mpd
is your outputted folder
To install aw-watcher-mpd, first build it, then follow the below steps to install and automatically start the watcher when ActivityWatch starts.
cp -R dist/aw-watcher-mpd /opt
/usr/bin/aw-watcher-mpd
#!/bin/bash
/opt/aw-watcher-mpd/aw-watcher-mpd "$@"
/usr/bin/aw-watcher-mpd
~/.config/activitywatch/aw-qt/aw-qt.toml
aw-watcher-mpd
to autostart.[aw-qt]
autostart_modules = ["aw-server", "aw-watcher-afk", "aw-watcher-window", "aw-watcher-mpd"]
To configure settings for aw-watcher mpd such as the MPD connection details and ActivityWatch poll time, first run the application once, and then edit ~/.config/activitywatch/aw-watcher-mpd/aw-watcher-mpd.toml
.