awesomewm/modules/backlight/keybinds.lua

26 lines
551 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-11-05 11:31:12 -07:00
backlight.backlight_up(config.backlight.button_step)
awesome.emit_signal("module::backlight:popup_show")
2021-08-01 07:24:26 -07:00
end,
{
description = "Raise brightness",
group = "System"
}
),
awful.key( {}, "XF86MonBrightnessDown",
function ()
2022-11-05 11:31:12 -07:00
backlight.backlight_down(config.backlight.button_step)
awesome.emit_signal("module::backlight:popup_show")
2021-08-01 07:24:26 -07:00
end,
{
description = "Lower brightness",
group = "System"
}
)
)