Added backlight module
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
return {
|
||||
keys = gears.table.join(
|
||||
require("binds.system.backlight"),
|
||||
require("binds.system.system"),
|
||||
|
||||
require("binds.window.client"),
|
||||
|
@ -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"
|
||||
}
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user