From 13535011bb12163a4f9035cf2f231e856565e950 Mon Sep 17 00:00:00 2001 From: marcellus Date: Thu, 4 May 2023 00:13:20 +0200 Subject: fix: overall patches --- mpv/music/online.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 mpv/music/online.lua (limited to 'mpv/music/online.lua') diff --git a/mpv/music/online.lua b/mpv/music/online.lua new file mode 100644 index 0000000..bcd5d18 --- /dev/null +++ b/mpv/music/online.lua @@ -0,0 +1,9 @@ +local utils = require "mp.utils" + +function notify_current_media(key) + local title = mp.get_property(key) + mp.command_native({"run", "pkill", "-RTMIN+1", "dwmblocks"}) + return mp.command_native({"run", "env", "HERBE_ID=/music", "herbe", title}) +end + +mp.observe_property("media-title", string, notify_current_media) \ No newline at end of file -- cgit v1.2.3