2017-10-05 02:46:09 +02:00
|
|
|
# Batteryarc widget
|
2017-10-09 23:14:03 +02:00
|
|
|
|
|
|
|
This widget is more informative version of [battery widget](https://github.com/streetturtle/awesome-wm-widgets/tree/master/battery-widget).
|
|
|
|
|
|
|
|
Depending of the battery status it could look following ways:
|
|
|
|
|
|
|
|
- ![10_d](./10_d.png) - less than 15 percent
|
|
|
|
- ![10_c](./10_c.png) - less than 15 percent, charging
|
|
|
|
- ![20_d](./20_d.png) - between 15 and 40 percent
|
|
|
|
- ![20_c](./20_c.png) - between 15 and 40 percent, charging
|
|
|
|
- ![80_d](./80_d.png) - more than 40 percent
|
|
|
|
- ![80_c](./80_c.png) - more than 40 percent, charging
|
|
|
|
|
|
|
|
Widget uses following beautiful variables with values:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
theme.widget_main_color = "#74aeab"
|
|
|
|
theme.widget_red = "#e53935"
|
2017-10-13 01:51:27 +02:00
|
|
|
theme.widget_yellow = "#c0ca33"
|
2017-10-09 23:14:03 +02:00
|
|
|
theme.widget_green = "#43a047"
|
|
|
|
theme.widget_black = "#000000"
|
|
|
|
theme.widget_transparent = "#00000000"
|
|
|
|
```
|
|
|
|
|
|
|
|
which means that you need to copy the code above and paste it in your **theme.lua**. Otherwise you can change colors directly in the widget.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
Clone repo, include widget and use it in **rc.lua**:
|
|
|
|
|
|
|
|
```lua
|
2018-07-11 12:36:35 +02:00
|
|
|
local batteryarc_widget = require("awesome-wm-widgets.batteryarc-widget.batteryarc")
|
2017-10-09 23:14:03 +02:00
|
|
|
...
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
...
|
|
|
|
batteryarc_widget,
|
|
|
|
...
|
|
|
|
```
|
2018-04-02 00:15:13 +02:00
|
|
|
You can get the icon for warning popup [here](https://vk.com/images/stickers/1933/512.png)
|
2017-10-09 23:14:03 +02:00
|
|
|
|
|
|
|
## Troubleshooting
|
|
|
|
|
2017-10-13 01:51:27 +02:00
|
|
|
In case of any doubts or questions don't hesitate to raise an [issue](https://github.com/streetturtle/awesome-wm-widgets/issues/new).
|