We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2aa096 + f7f63f1 commit d266d95Copy full SHA for d266d95
contrib/pulse_all.lua
@@ -81,8 +81,9 @@ local function worker(format, sink)
81
82
local vol = tonumber(string.match(data, "set%-sink%-volume "..escape(sink).." (0x[%x]+)"))
83
if vol == nil then vol = 0 end
84
+ volpercent = vol/0x10000*100
85
- return { math.floor(vol/0x10000*100), "on"}
86
+ return { volpercent % 1 >= 0.5 and math.ceil(volpercent) or math.floor(volpercent), "on"}
87
end
88
-- }}}
89
0 commit comments