diff options
author | Pavel Makhov <pmakhov@touchtunes.com> | 2019-01-26 23:13:46 -0500 |
---|---|---|
committer | Pavel Makhov <pmakhov@touchtunes.com> | 2019-01-26 23:13:46 -0500 |
commit | 70fd5a38b0fcd9d1399d3d978f05d9964abb812c (patch) | |
tree | 7d7336840d65fed4dc58849863446fff25be744a /batteryarc-widget | |
parent | ee396d7c5b45d0dea4160f5cef0f0bc81980dd1f (diff) |
Remove decimal part of the charge when setting current charge value in batterarc widget
Diffstat (limited to 'batteryarc-widget')
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua index 517401b..6d75be6 100644 --- a/batteryarc-widget/batteryarc.lua +++ b/batteryarc-widget/batteryarc.lua @@ -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 } |