From 0cce59c09a283e459dec7fcc484ae5236f4ee64e Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 11 Feb 2019 08:40:32 -0500 Subject: Update README.md --- brightness-widget/README.md | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'brightness-widget/README.md') diff --git a/brightness-widget/README.md b/brightness-widget/README.md index fa123c1..a2aecf7 100644 --- a/brightness-widget/README.md +++ b/brightness-widget/README.md @@ -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 -- cgit v1.2.3 From e972b55c0c3b18409adec1a6655bbdc4dcddbb53 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 11 Feb 2019 08:41:46 -0500 Subject: Update README.md --- brightness-widget/README.md | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'brightness-widget/README.md') diff --git a/brightness-widget/README.md b/brightness-widget/README.md index a2aecf7..5d592b6 100644 --- a/brightness-widget/README.md +++ b/brightness-widget/README.md @@ -54,19 +54,6 @@ s.mytasklist, -- Middle widget ... ``` -Then in **rc.lua** add the import on top of the file and then add widget to the wibox: - -```lua -require("awesome-wm-widgets.brightness-widget.brightness") -... --- Add widgets to the wibox -s.mywibox:setup { -... -{ -- Right widgets -... -brightness_widget -``` - ## Controls In order to change brightness by shortcuts you can add them to the `globalkeys` table in the **rc.lua**: -- cgit v1.2.3