awesomewm/binds/system/backlight.lua

57 lines
985 B
Lua
Executable File

return gears.table.join(
awful.key( {}, "XF86MonBrightnessUp",
function ()
bck.backlight_up()
end,
{
description = "Raise brightness",
group = "System"
}
),
awful.key( {}, "XF86MonBrightnessDown",
function ()
bck.backlight_down()
end,
{
description = "Lower brightness",
group = "System"
}
),
awful.key( { "Mod4" }, "o",
function ()
bin.backlight.redshift(5600)
end,
{
description = "Default redshift",
group = "System"
}
),
awful.key( { "Mod4", "Shift" }, "o",
function ()
bin.backlight.redshift_reset()
end,
{
description = "Reset redshift",
group = "System"
}
),
awful.key( { "Mod4", "Shift", "Control" }, "o",
function ()
bin.backlight.redshift_reset()
awful.prompt.run {
prompt = "<b>Color temperature: </b>",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = bin.backlight.redshift
}
end,
{
description = "Set redshift",
group = "System"
}
)
)