awesome-wm-widgets/BatteryWidget/README.md

27 lines
789 B
Markdown
Raw Normal View History

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
2015-07-18 13:31:59 +02:00
This widget consists of
2015-07-13 18:33:42 +02:00
2015-07-18 13:31:59 +02:00
- an icon which shows the battery status: ![Battery Widget](./batWid1.png)
- a pop-up window, which shows up when you hover over it: ![Battery Widget](./batWid2.png)
2015-07-19 14:51:58 +02:00
- a pop-up warning message which appears when battery level is less that 15%: ![Battery Widget](./batWid3.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;
2015-07-18 13:31:59 +02:00
- change path to the icons in `battery.lua`;
2015-07-13 18:42:24 +02:00
- include `battery.lua` and add battery widget to your wibox in rc.lua:
2015-07-13 18:40:29 +02:00
```
2015-07-13 18:42:24 +02:00
require("battery")
...
2015-07-13 18:37:31 +02:00
right_layout:add(batteryIcon)
2015-07-13 18:40:29 +02:00
```