mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-17 07:49:09 +01:00
Merge branch 'master' of https://github.com/streetturtle/AwesomeWM
This commit is contained in:
commit
2bb6295029
1 changed files with 10 additions and 12 deletions
|
@ -1,24 +1,22 @@
|
|||
## Battery widget
|
||||
Simple and easy-to-install widget for Awesome Window Manager.
|
||||
|
||||
Basically this widget consist of an icon which shows the battery status: ![Battery Widget](./batWid1.png)
|
||||
Basically this widget consists 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)
|
||||
And a pop-up window, which shows up when you hover over it: ![Battery Widget](./batWid2.png)
|
||||
|
||||
## Installation
|
||||
|
||||
This widget ueses the output of acpi tool.
|
||||
|
||||
This widget uses the output of acpi tool.
|
||||
- install `acpi` tool:
|
||||
-
|
||||
{% highlight bash %}
|
||||
```
|
||||
sudo apt-get install acpi
|
||||
{% endhighlight %}
|
||||
|
||||
```
|
||||
- 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:
|
||||
|
||||
{% highlight lua%}
|
||||
- include `battery.lua` and add battery widget to your wibox in rc.lua:
|
||||
```
|
||||
require("battery")
|
||||
...
|
||||
right_layout:add(batteryIcon)
|
||||
{% endhighlight %}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue