mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-15 19:48:04 +01:00
Remove decimal part of the charge when setting current charge value in batterarc widget
This commit is contained in:
parent
ee396d7c5b
commit
70fd5a38b0
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue