2015-07-13 18:37:31 +02:00
|
|
|
## Battery widget
|
|
|
|
Simple and easy-to-install widget for Awesome Window Manager.
|
2015-07-13 18:33:42 +02:00
|
|
|
|
|
|
|
Basically this widget consist of an icon which shows the battery status: ![Battery Widget](./batWid1.png)
|
|
|
|
|
|
|
|
And a pop-up window, which shows when you hover over it: ![Battery Widget](./batWid2.png)
|
2015-07-13 18:37:31 +02:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2015-07-13 18:40:29 +02:00
|
|
|
This widget uses the output of acpi tool.
|
2015-07-13 18:37:31 +02:00
|
|
|
- install `acpi` tool:
|
2015-07-13 18:40:29 +02:00
|
|
|
```
|
2015-07-13 18:37:31 +02:00
|
|
|
sudo apt-get install acpi
|
2015-07-13 18:40:29 +02:00
|
|
|
```
|
2015-07-13 18:37:31 +02:00
|
|
|
- clone/copy battery.lua file and battery-icons folder to your ~/home/username/.config/awesome/ folder;
|
|
|
|
|
|
|
|
- add battery widget to your wibox in rc.lua:
|
2015-07-13 18:40:29 +02:00
|
|
|
```
|
2015-07-13 18:37:31 +02:00
|
|
|
right_layout:add(batteryIcon)
|
2015-07-13 18:40:29 +02:00
|
|
|
```
|