57 lines
993 B
Lua
57 lines
993 B
Lua
|
return gears.table.join(
|
||
|
awful.key( {}, "XF86MonBrightnessUp",
|
||
|
function ()
|
||
|
wrapper.backlight.up()
|
||
|
end,
|
||
|
{
|
||
|
description = "Raise brightness",
|
||
|
group = "System"
|
||
|
}
|
||
|
),
|
||
|
|
||
|
awful.key( {}, "XF86MonBrightnessDown",
|
||
|
function ()
|
||
|
wrapper.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"
|
||
|
}
|
||
|
)
|
||
|
)
|