brightness script

This commit is contained in:
2025-03-06 20:36:40 +00:00
parent 95158c40ab
commit 9a2053ff3d
3 changed files with 61 additions and 0 deletions

View File

@@ -278,6 +278,16 @@ globalkeys = gears.table.join(
xclip -selection clipboard -target image/png -i $f'
]])
end),
awful.key({}, "XF86MonBrightnessDown", function()
awful.spawn.easy_async_with_shell("brightness down", function(stdout)
naughty.notify({text = stdout, timeout = 1})
end)
end),
awful.key({}, "XF86MonBrightnessUp", function()
awful.spawn.easy_async_with_shell("brightness up", function(stdout)
naughty.notify({text = stdout, timeout = 1})
end)
end),
awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext,