default config: raise with "maximize" and "fullscreen"
After using sloppy mouse focus to select a client (which does not raise it already), maximizing/fullscreening it should then raise it. This also uses the new shortcut `c.maximized = not c.maximized`. Closes https://github.com/awesomeWM/awesome/pull/270
This commit is contained in:
parent
7d430cf51a
commit
38840c911b
|
@ -291,7 +291,11 @@ globalkeys = awful.util.table.join(
|
||||||
)
|
)
|
||||||
|
|
||||||
clientkeys = awful.util.table.join(
|
clientkeys = awful.util.table.join(
|
||||||
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
|
awful.key({ modkey, }, "f",
|
||||||
|
function (c)
|
||||||
|
c.fullscreen = not c.fullscreen
|
||||||
|
c:raise()
|
||||||
|
end),
|
||||||
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
|
awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
|
||||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
|
||||||
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
|
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
|
||||||
|
@ -305,8 +309,8 @@ clientkeys = awful.util.table.join(
|
||||||
end),
|
end),
|
||||||
awful.key({ modkey, }, "m",
|
awful.key({ modkey, }, "m",
|
||||||
function (c)
|
function (c)
|
||||||
c.maximized_horizontal = not c.maximized_horizontal
|
c.maximized = not c.maximized
|
||||||
c.maximized_vertical = not c.maximized_vertical
|
c:raise()
|
||||||
end)
|
end)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue