Add brightnessctl
This commit is contained in:
parent
9432984e48
commit
7b678e6ff3
3 changed files with 12 additions and 2 deletions
|
@ -17,6 +17,9 @@ apps = {
|
|||
-- Your default screenshot tool
|
||||
screenshot = "flameshot gui",
|
||||
|
||||
-- brightness
|
||||
brightness_up = "brightnessctl s 5%+",
|
||||
brightness_down = "brightnessctl s 5%-",
|
||||
}
|
||||
|
||||
apps.editor_cmd = apps.terminal .. " -e " .. apps.editor
|
||||
|
|
|
@ -125,7 +125,7 @@ globalKeys = gears.table.join(
|
|||
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||
{description = "run prompt", group = "launcher"}),
|
||||
|
||||
awful.key({ modkey }, "x",
|
||||
awful.key({ modkey, "Control" }, "x",
|
||||
function ()
|
||||
awful.prompt.run {
|
||||
prompt = "Run Lua code: ",
|
||||
|
@ -140,7 +140,13 @@ globalKeys = gears.table.join(
|
|||
awful.key({ modkey }, "p", function () awful.spawn(apps.screenshot) end,
|
||||
{description = "take screenshot", group = "apps"}),
|
||||
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.
|
||||
|
|
|
@ -25,6 +25,7 @@ DOTS = ['alacritty', 'bash', 'direnv', 'git', 'nvim', 'profile', 'xinit']
|
|||
dependencies = [
|
||||
'acpi',
|
||||
'alacritty',
|
||||
'brightnessctl',
|
||||
'clang',
|
||||
'curl',
|
||||
'firefox',
|
||||
|
|
Loading…
Reference in a new issue