Update README.md

This commit is contained in:
streetturtle 2019-02-11 08:40:32 -05:00 committed by GitHub
parent f95c2015ea
commit 0cce59c09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 4 deletions

View File

@ -1,12 +1,10 @@
# Brightness widget
![Brightness widget](./br-wid-1.png)
This widget represents current brightness level.
This widget represents current brightness level: ![Brightness widget](./br-wid-1.png)
## Installation
Firstly you need to get the current brightness level. There are two options:
First you need to get the current brightness level. There are two options:
- using `xbacklight` command (depending on your video card (I guess) it may or may not work)
@ -30,8 +28,32 @@ Firstly you need to get the current brightness level. There are two options:
light -G
49.18
```
Depending on the chosen option change `GET_BRIGHTNESS_CMD` variable in **brightness.lua**.
Then clone this repo under **~/.config/awesome/**:
```bash
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/
```
Require widget at the beginning of **rc.lua**:
```lua
local brightness_widget = require("awesome-wm-widgets.brightness-widget.brightness")
```
Add widget to the tasklist:
```lua
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
brightness_widget,
...
```
Then in **rc.lua** add the import on top of the file and then add widget to the wibox:
```lua