about summary refs log tree commit diff
path: root/.config/luastatus/alsa.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/luastatus/alsa.lua')
-rw-r--r--.config/luastatus/alsa.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/.config/luastatus/alsa.lua b/.config/luastatus/alsa.lua
index fb97270..fc0f13b 100644
--- a/.config/luastatus/alsa.lua
+++ b/.config/luastatus/alsa.lua
@@ -10,8 +10,18 @@ widget = {
         symbol = '󰕿'
       elseif percent >= 70 then
         symbol = '󰕾'
+        if percent >= 99.5 then
+          return {
+            full_text = string.format('%s %d%%', symbol, math.floor(0.5 + percent)),
+            color = '#b7bdf8'
+          }
+        end
       end
-      return { full_text = string.format('%s%3d%%', symbol, math.floor(0.5 + percent)), color = '#b7bdf8' }
+
+      return {
+        full_text = string.format('%s%3d%%', symbol, math.floor(0.5 + percent)),
+        color = '#b7bdf8'
+      }
     end
   end,
   event = [[