Started migrating to module architecture

This commit is contained in:
2022-07-16 14:13:03 -07:00
parent d68efc5713
commit 840f084db8
16 changed files with 369 additions and 289 deletions

View File

@ -1,10 +1,8 @@
return {
keys = gears.table.join(
require("binds.system.backlight"),
require("binds.system.mpd"),
require("binds.system.volume"),
require("binds.system.system"),
require("binds.system.input"),
require("binds.window.client"),
require("binds.window.layout"),

View File

@ -1,29 +0,0 @@
return gears.table.join(
awful.key( {"Mod4"}, "space",
function()
desktop.popup.language.next()
end,
{
description = "Change input language",
group = "System"
}
),
awful.key( {"Mod4", "Shift", "Control"}, "9",
function()
desktop.popup.language.set(2)
end,
{
description = "Set input language to RU",
group = "System"
}
),
awful.key( {"Mod4", "Shift", "Control"}, "0",
function()
desktop.popup.language.set(1)
end,
{
description = "Set input language to EN",
group = "System"
}
)
)

View File

@ -1,51 +0,0 @@
return gears.table.join(
awful.key( {}, "XF86AudioPrev",
function ()
bin.mpc.command("prev")
end,
{
description = "Previous track",
group = "MPD"
}
),
awful.key( {}, "XF86AudioPlay",
function ()
bin.mpc.command("toggle")
end,
{
description = "Play/Pause",
group = "MPD"
}
),
awful.key( {}, "XF86AudioNext",
function ()
bin.mpc.command("next")
end,
{
description = "Next track",
group = "MPD"
}
),
awful.key( {"Mod4"}, "XF86AudioRaiseVolume",
function ()
bin.mpc.command("vol +5")
end,
{
description = "Volume up",
group = "MPD"
}
),
awful.key( {"Mod4"}, "XF86AudioLowerVolume",
function ()
bin.mpc.command("vol -5")
end,
{
description = "Volume down",
group = "MPD"
}
)
)