Parranoh / mpv-notify-send

A Lua script for mpv to send notifications with notify-send(1).
Do What The F*ck You Want To Public License
31 stars 9 forks source link

Added key ("N") to manually trigger notification #8

Open wrest64 opened 1 year ago

wrest64 commented 1 year ago

This also makes it easy for people running mpv as an IPC-server to manually trigger the notification by calling

echo '{ "command": ["keypress", "N"] }' | socat - /path/to/mpv-socket

Resolves #5

Parranoh commented 4 months ago

Thank you for the pull request.

I would like to avoid adding a keybind for users who haven't explicitly specified this. To this end I'd introduce a script option notify_send-key so that one can do --script-opts=notify_send-key=N to get this binding if one wants it.

I can implement this myself if you don't want to, just let me know.