From b767be3ffd3e858c54951a67eacd5b5eadf8c7c6 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 17 Dec 2016 17:48:35 +0100 Subject: updates --- config/awesome/volume.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'config/awesome/volume.lua') diff --git a/config/awesome/volume.lua b/config/awesome/volume.lua index bd1d1fb..4d491df 100644 --- a/config/awesome/volume.lua +++ b/config/awesome/volume.lua @@ -52,16 +52,19 @@ function update_volume(widget) -- local volume = tonumber(string.match(status, "(%d?%d?%d)%%")) / 100 local volume = string.match(status, "(%d?%d?%d)%%") - volume = string.format("% 3d", volume) + volume = string.format("%02d", volume) status = string.match(status, "%[(o[^%]]*)%]") if string.find(status, "on", 1, true) then -- For the volume numbers - volume = volume .. "%" + note = '♬' + volume = ' '.. note .. volume .. "%" .. " " else -- For the mute button - volume = "" .. volume .. "%" + -- rest = '𝄻' + rest = '♬' + volume = " ".. rest .. volume .. "%" .. " " end widget:set_markup(volume) end -- cgit v1.2.3