Remove decimal part of the charge when setting current charge value in batterarc widget

This commit is contained in:
Pavel Makhov 2019-01-26 23:13:46 -05:00
parent ee396d7c5b
commit 70fd5a38b0
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ watch("acpi -i", 10,
mirrored_text_with_background.fg = beautiful.widget_main_color
end
text.text = charge
text.text = string.format('%d', charge)
if charge < 15 then
batteryarc.colors = { beautiful.widget_red }