Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 970 Bytes

README.md

File metadata and controls

53 lines (36 loc) · 970 Bytes

gobo-awesome-light

A backlight widget for Awesome WM, designed for http://gobolinux.org.

Requirements

Installing

luarocks install gobo-awesome-light

Using

Require the module:

local light = require("gobo.awesome.light")

Create the widget with light.new():

local light_widget = light.new()

Then add it to your layout. In a typical rc.lua this will look like this:

right_layout:add(light_widget)

Additionally, add keybindings for your multimedia keys:

   awful.key({ }, "XF86MonBrightnessUp", function() light_widget:inc_brightness(5) end,
      {description = "Raise screen brightness", group = "multimedia"}
   ),
   awful.key({ }, "XF86MonBrightnessDown", function() light_widget:dec_brightness(5) end,
      {description = "Lower screen brightness", group = "multimedia"}
   ),