summaryrefslogtreecommitdiff
path: root/config/awesome/volume.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/awesome/volume.lua')
-rw-r--r--config/awesome/volume.lua9
1 files changed, 6 insertions, 3 deletions
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 = "<span color='red'>" .. volume .. "%</span>"
+ -- rest = '𝄻'
+ rest = '♬'
+ volume = " <span color='red'>".. rest .. volume .. "%" .. "</span> "
end
widget:set_markup(volume)
end