From 8acb0d670e56a320568a7eaab306a3cd3e9df101 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 8 Jan 2019 18:37:34 +0000 Subject: [PATCH] Fic mpxplayer block --- i3/blocks/mpvmediaplayer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3/blocks/mpvmediaplayer b/i3/blocks/mpvmediaplayer index 2316ba05..f0dcf481 100755 --- a/i3/blocks/mpvmediaplayer +++ b/i3/blocks/mpvmediaplayer @@ -9,6 +9,6 @@ socket="${SOCKET:-/tmp/mpvsocket}" #esac -echo '{ "command": ["get_property_string", "filtered-metadata"] }' | socat - /tmp/mpvsocket | jq '.data' | sed 's/"{\\"icy-title\\":\\"//g' | sed 's/\\"}"//g' +echo '{ "command": ["get_property_string", "filtered-metadata"] }' | socat - "${socket}" | jq '.data' | sed 's/"{\\"icy-title\\":\\"//g' | sed 's/\\"}"//g' echo "" echo "#00FF00"