Add brightnessctl

This commit is contained in:
buffet 2021-05-31 23:18:16 +00:00
parent 9432984e48
commit 7b678e6ff3
3 changed files with 12 additions and 2 deletions

View file

@ -17,6 +17,9 @@ apps = {
-- Your default screenshot tool -- Your default screenshot tool
screenshot = "flameshot gui", screenshot = "flameshot gui",
-- brightness
brightness_up = "brightnessctl s 5%+",
brightness_down = "brightnessctl s 5%-",
} }
apps.editor_cmd = apps.terminal .. " -e " .. apps.editor apps.editor_cmd = apps.terminal .. " -e " .. apps.editor

View file

@ -125,7 +125,7 @@ globalKeys = gears.table.join(
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end, awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}), {description = "run prompt", group = "launcher"}),
awful.key({ modkey }, "x", awful.key({ modkey, "Control" }, "x",
function () function ()
awful.prompt.run { awful.prompt.run {
prompt = "Run Lua code: ", prompt = "Run Lua code: ",
@ -140,7 +140,13 @@ globalKeys = gears.table.join(
awful.key({ modkey }, "p", function () awful.spawn(apps.screenshot) end, awful.key({ modkey }, "p", function () awful.spawn(apps.screenshot) end,
{description = "take screenshot", group = "apps"}), {description = "take screenshot", group = "apps"}),
awful.key({ modkey }, "i", function () awful.spawn(apps.browser) end, awful.key({ modkey }, "i", function () awful.spawn(apps.browser) end,
{description = "open browser", group = "apps"}) {description = "open browser", group = "apps"}),
-- Brightness
awful.key({ modkey }, "x", function () awful.spawn(apps.brightness_up) end,
{description = "brightness up", group = "apps"}),
awful.key({ modkey }, "z", function () awful.spawn(apps.brightness_down) end,
{description = "brightness down", group = "apps"})
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.

View file

@ -25,6 +25,7 @@ DOTS = ['alacritty', 'bash', 'direnv', 'git', 'nvim', 'profile', 'xinit']
dependencies = [ dependencies = [
'acpi', 'acpi',
'alacritty', 'alacritty',
'brightnessctl',
'clang', 'clang',
'curl', 'curl',
'firefox', 'firefox',