Reset old config
This commit is contained in:
78
binds/window/client.lua
Executable file
78
binds/window/client.lua
Executable file
@ -0,0 +1,78 @@
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod4"}, "Left",
|
||||
function ()
|
||||
awful.client.focus.byidx( 1)
|
||||
end,
|
||||
{
|
||||
description = "Focus next",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "Right",
|
||||
function ()
|
||||
awful.client.focus.byidx(-1)
|
||||
end,
|
||||
{
|
||||
description = "Focus previous",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift"}, "j",
|
||||
function ()
|
||||
awful.client.swap.byidx(1)
|
||||
end,
|
||||
{
|
||||
description = "Swap with next window",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift"}, "k",
|
||||
function ()
|
||||
awful.client.swap.byidx(-1)
|
||||
end,
|
||||
{
|
||||
description = "Swap with previous window",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "u",
|
||||
awful.client.urgent.jumpto,
|
||||
{
|
||||
description = "Jump to urgent window",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "b",
|
||||
function ()
|
||||
awful.client.focus.history.previous()
|
||||
if client.focus then
|
||||
client.focus:raise()
|
||||
end
|
||||
end,
|
||||
{
|
||||
description = "Go back",
|
||||
group = "Client"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Control"}, "n",
|
||||
function ()
|
||||
local c = awful.client.restore()
|
||||
-- Focus restored client
|
||||
if c then
|
||||
c:emit_signal(
|
||||
"request::activate", "key.unminimize", {raise = true}
|
||||
)
|
||||
end
|
||||
end,
|
||||
{
|
||||
description = "Restore minimized",
|
||||
group = "Client"
|
||||
}
|
||||
)
|
||||
)
|
81
binds/window/layout.lua
Executable file
81
binds/window/layout.lua
Executable file
@ -0,0 +1,81 @@
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod4"}, "j",
|
||||
function ()
|
||||
awful.tag.incmwfact( 0.05)
|
||||
end,
|
||||
{
|
||||
description = "increase master width factor",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key({"Mod4"}, "h",
|
||||
function ()
|
||||
awful.tag.incmwfact(-0.05)
|
||||
end,
|
||||
{
|
||||
description = "decrease master width factor",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift"}, "h",
|
||||
function ()
|
||||
awful.tag.incnmaster(1, nil, true)
|
||||
end,
|
||||
{
|
||||
description = "increase the number of master clients",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift"}, "l",
|
||||
function ()
|
||||
awful.tag.incnmaster(-1, nil, true)
|
||||
end,
|
||||
{
|
||||
description = "decrease the number of master clients",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Control"}, "h",
|
||||
function ()
|
||||
awful.tag.incncol(1, nil, true)
|
||||
end,
|
||||
{
|
||||
description = "increase the number of columns",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Control"}, "l",
|
||||
function ()
|
||||
awful.tag.incncol(-1, nil, true)
|
||||
end,
|
||||
{
|
||||
description = "decrease the number of columns",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "l",
|
||||
function ()
|
||||
layoutmanager:next()
|
||||
end,
|
||||
{
|
||||
description = "select layouts",
|
||||
group = "Layout"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "k",
|
||||
function ()
|
||||
layoutmanager:next_alt()
|
||||
end,
|
||||
{
|
||||
description = "cycle alt layouts",
|
||||
group = "Layout"
|
||||
}
|
||||
)
|
||||
)
|
41
binds/window/tags.lua
Executable file
41
binds/window/tags.lua
Executable file
@ -0,0 +1,41 @@
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod1", "Control"}, "Left",
|
||||
function ()
|
||||
awful.screen.focused().tagger:left()
|
||||
end,
|
||||
{
|
||||
description = "Left",
|
||||
group = "Tags"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod1", "Control"}, "Right",
|
||||
function ()
|
||||
awful.screen.focused().tagger:right()
|
||||
end,
|
||||
{
|
||||
description = "Right",
|
||||
group = "Tags"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod1", "Control"}, "Up",
|
||||
function ()
|
||||
awful.screen.focused().tagger:up()
|
||||
end,
|
||||
{
|
||||
description = "Up",
|
||||
group = "Tags"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod1", "Control"}, "Down",
|
||||
function ()
|
||||
awful.screen.focused().tagger:down()
|
||||
end,
|
||||
{
|
||||
description = "Down",
|
||||
group = "Tags"
|
||||
}
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user