From 7e814d1411a27840136400220e74e720260d5c07 Mon Sep 17 00:00:00 2001 From: Sam Price Date: Thu, 1 Jul 2021 14:08:53 -0500 Subject: [PATCH] Add volume to MPD widget (#507) --- widget/mpd.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widget/mpd.lua b/widget/mpd.lua index 143e085..55d3649 100644 --- a/widget/mpd.lua +++ b/widget/mpd.lua @@ -61,7 +61,8 @@ local function factory(args) track = "N/A", date = "N/A", time = "N/A", - elapsed = "N/A" + elapsed = "N/A", + volume = "N/A" } for line in string.gmatch(f, "[^\n]+") do @@ -83,6 +84,7 @@ local function factory(args) elseif k == "single" then mpd_now.single_mode = v ~= "0" elseif k == "random" then mpd_now.random_mode = v ~= "0" elseif k == "consume" then mpd_now.consume_mode = v ~= "0" + elseif k == "volume" then mpd_now.volume = v end end end