Changed awesome laptop

This commit is contained in:
Kristofers Solo 2022-04-28 23:09:27 +03:00
parent ce413e00a8
commit 60517db137

View File

@ -357,17 +357,17 @@ globalkeys = gears.table.join(
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end, awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
{description = "select previous", group = "layout"}), {description = "select previous", group = "layout"}),
awful.key({ modkey, "Control" }, "n", -- awful.key({ modkey, "Control" }, "n",
function () -- function ()
local c = awful.client.restore() -- local c = awful.client.restore()
-- Focus restored client -- -- Focus restored client
if c then -- if c then
c:emit_signal( -- c:emit_signal(
"request::activate", "key.unminimize", {raise = true} -- "request::activate", "key.unminimize", {raise = true}
) -- )
end -- end
end, -- end,
{description = "restore minimized", group = "client"}), -- {description = "restore minimized", group = "client"}),
-- Prompt -- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end, awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
@ -404,32 +404,32 @@ clientkeys = gears.table.join(
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end, awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}), {description = "move to screen", group = "client"}),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end, awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}), {description = "toggle keep on top", group = "client"})
awful.key({ modkey, }, "n", -- awful.key({ modkey, }, "n",
function (c) -- function (c)
-- The client currently has the input focus, so it cannot be -- -- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus. -- -- minimized, since minimized clients can't have the focus.
c.minimized = true -- c.minimized = true
end , -- end ,
{description = "minimize", group = "client"}), -- {description = "minimize", group = "client"}),
awful.key({ modkey, }, "m", -- awful.key({ modkey, }, "m",
function (c) -- function (c)
c.maximized = not c.maximized -- c.maximized = not c.maximized
c:raise() -- c:raise()
end , -- end ,
{description = "(un)maximize", group = "client"}), -- {description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m", -- awful.key({ modkey, "Control" }, "m",
function (c) -- function (c)
c.maximized_vertical = not c.maximized_vertical -- c.maximized_vertical = not c.maximized_vertical
c:raise() -- c:raise()
end , -- end ,
{description = "(un)maximize vertically", group = "client"}), -- {description = "(un)maximize vertically", group = "client"}),
awful.key({ modkey, "Shift" }, "m", -- awful.key({ modkey, "Shift" }, "m",
function (c) -- function (c)
c.maximized_horizontal = not c.maximized_horizontal -- c.maximized_horizontal = not c.maximized_horizontal
c:raise() -- c:raise()
end , -- end ,
{description = "(un)maximize horizontally", group = "client"}) -- {description = "(un)maximize horizontally", group = "client"})
) )
-- Bind all key numbers to tags. -- Bind all key numbers to tags.