Reset old config

This commit is contained in:
2021-08-01 07:24:26 -07:00
commit 7cc3903efe
144 changed files with 16466 additions and 0 deletions

31
clients/binds/buttons.lua Executable file
View File

@ -0,0 +1,31 @@
-- Make sure clients and titlebars don't share bids. Both will trigger,
-- and that will cause problems. See titlebar.lua
return gears.table.join(
awful.button( {}, 1,
function(client)
client:emit_signal("request::activate", "mouse_click", {raise = true})
end
),
awful.button( {"Mod4"}, 1,
function(client)
client:emit_signal("request::activate", "mouse_click", {raise = true})
awful.mouse.client.move(client)
end
),
awful.button( {"Mod4", "Control"}, 1,
function(client)
client:emit_signal("request::activate", "mouse_click", {raise = true})
awful.mouse.client.resize(client)
end
),
awful.button( {"Mod4"}, 3,
function(client)
client:emit_signal("request::activate", "mouse_click", {raise = true})
awful.mouse.client.resize(client)
end
)
)

129
clients/binds/keys.lua Executable file
View File

@ -0,0 +1,129 @@
return gears.table.join(
awful.key( {"Mod4", "Control"}, "Left",
function (c)
c.screen.tagger:move_client(c, "left")
end,
{
description = "move client left",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Right",
function (c)
c.screen.tagger:move_client(c, "right")
end,
{
description = "move client right",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Down",
function (c)
c.screen.tagger:move_client(c, "down")
end,
{
description = "move client down",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Up",
function (c)
c.screen.tagger:move_client(c, "up")
end,
{
description = "move client up",
group = "client"
}
),
awful.key( {"Mod4"}, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{
description = "toggle fullscreen",
group = "client"
}
),
awful.key( {"Mod4", "Shift"}, "c",
function (c)
c:kill()
end,
{
description = "close",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "space",
awful.client.floating.toggle,
{
description = "toggle floating",
group = "client"
}
),
awful.key( {"Mod4", "Control"}, "Return",
function (c)
c:swap(awful.client.getmaster())
end,
{
description = "move to master",
group = "client"
}
),
awful.key( {"Mod4"}, "t",
function (c)
c.ontop = not c.ontop
end,
{
description = "toggle keep on top",
group = "client"
}
),
awful.key( {"Mod4"}, "n",
function (c)
c.minimized = true
end,
{
description = "minimize",
group = "client"
}
),
awful.key( {"Mod4"}, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end,
{
description = "(un)maximize", group = "client"
}
),
awful.key( {"Mod4", "Control"}, "m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end,
{
description = "(un)maximize vertically",
group = "client"
}
),
awful.key( {"Mod4", "Shift"}, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end,
{
description = "(un)maximize horizontally",
group = "client"
}
)
)

20
clients/binds/titlebar.lua Executable file
View File

@ -0,0 +1,20 @@
-- Make sure clients and titlebars don't share bids. Both will trigger,
-- and that will cause problems. See buttons.lua
return function(client)
return gears.table.join(
awful.button( {}, 1,
function()
client:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.move(client)
end
),
awful.button( {}, 3,
function()
client:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.resize(client)
end
)
)
end