Added backlight module

This commit is contained in:
2022-07-16 16:06:02 -07:00
parent 8e8c4840da
commit 3014105bbf
12 changed files with 178 additions and 180 deletions

View File

@ -1,6 +1,5 @@
return {
keys = gears.table.join(
require("binds.system.backlight"),
require("binds.system.system"),
require("binds.window.client"),

View File

@ -1,56 +0,0 @@
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"
}
)
)