From ba9ec375df8c6e32b305a0aa75716ac65e3fb30a Mon Sep 17 00:00:00 2001 From: wrest64 <108373766+wrest64@users.noreply.github.com> Date: Wed, 8 Feb 2023 22:42:16 +0000 Subject: [PATCH] Added key ("N") to manually trigger notification This also makes it easy for people running mpv as an IPC-server to manually trigger the notification by running "echo '{ "command": ["keypress", "N"] }' | socat - /path/to/mpv-socket" --- notify-send.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/notify-send.lua b/notify-send.lua index e0c022d..42c6f88 100644 --- a/notify-send.lua +++ b/notify-send.lua @@ -97,3 +97,4 @@ function notify_current_media() end mp.register_event("file-loaded", notify_current_media) +mp.add_key_binding("N", notify_current_media)