An ActivityWatch watcher for MPD.
|
před 1 rokem | |
---|---|---|
aw_watcher_mpv | před 1 rokem | |
.gitignore | před 1 rokem | |
Makefile | před 1 rokem | |
README.md | před 1 rokem | |
aw-watcher-mpv.spec | před 1 rokem | |
requirements.txt | před 1 rokem |
An ActivityWatch watcher for MPV.
Based of off aw-watcher-spotify and aw-watcher-mpv.
pip install -r requirements.txt
aw-qt --testing
cd aw_watcher_mpv
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
/usr/bin/aw-watcher-mpv
#!/bin/bash
/opt/aw-watcher-mpv/aw-watcher-mpv "$@"
/usr/bin/aw-watcher-mpv
~/.config/activitywatch/aw-qt/aw-qt.toml
aw-watcher-mpv
to autostart.[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 ~/.config/activitywatch/aw-watcher-mpv/aw-watcher-mpv.toml
.
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 input-ipc-server=/tmp/mpv-socket
to ~/.config/mpv/mpv.conf
.