Skip to content

Commit

Permalink
Add volume to MPD widget (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-vcs authored Jul 1, 2021
1 parent 6bf79c3 commit 7e814d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/mpd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7e814d1

Please sign in to comment.