awesomewm/modules/backlight/keybinds.lua

24 lines
385 B
Lua
Raw Normal View History

2022-07-16 16:06:02 -07:00
local backlight = req_rel(..., "util")
2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {}, "XF86MonBrightnessUp",
function ()
2022-07-16 16:06:02 -07:00
backlight.backlight_up()
2021-08-01 07:24:26 -07:00
end,
{
description = "Raise brightness",
group = "System"
}
),
awful.key( {}, "XF86MonBrightnessDown",
function ()
2022-07-16 16:06:02 -07:00
backlight.backlight_down()
2021-08-01 07:24:26 -07:00
end,
{
description = "Lower brightness",
group = "System"
}
)
)