Add client_zoom
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1edaef8247
commit
95c8e05c4d
|
@ -193,6 +193,7 @@ keybinding.new({ modkey, "Shift" }, "k", function () awful.client.swap(-1) end):
|
||||||
keybinding.new({ modkey, "Control" }, "j", function () awful.screen.focus(1) end):add()
|
keybinding.new({ modkey, "Control" }, "j", function () awful.screen.focus(1) end):add()
|
||||||
keybinding.new({ modkey, "Control" }, "k", function () awful.screen.focus(-1) end):add()
|
keybinding.new({ modkey, "Control" }, "k", function () awful.screen.focus(-1) end):add()
|
||||||
keybinding.new({ modkey, "Control" }, "space", awful.client.togglefloating):add()
|
keybinding.new({ modkey, "Control" }, "space", awful.client.togglefloating):add()
|
||||||
|
keybinding.new({ modkey, "Control" }, "Return", function () client.focus_get():swap(awful.client.master()) end):add()
|
||||||
keybinding.new({ modkey }, "o", awful.client.movetoscreen):add()
|
keybinding.new({ modkey }, "o", awful.client.movetoscreen):add()
|
||||||
|
|
||||||
-- Layout manipulation
|
-- Layout manipulation
|
||||||
|
|
|
@ -96,6 +96,10 @@ local function client_swap(i)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function client_master()
|
||||||
|
return client.visible_get(mouse.screen_get())[1]
|
||||||
|
end
|
||||||
|
|
||||||
-- Move/resize a client relativ to current coordinates.
|
-- Move/resize a client relativ to current coordinates.
|
||||||
local function client_moveresize(x, y, w, h)
|
local function client_moveresize(x, y, w, h)
|
||||||
local sel = client.focus_get()
|
local sel = client.focus_get()
|
||||||
|
@ -590,6 +594,7 @@ P.client =
|
||||||
next = client_next;
|
next = client_next;
|
||||||
focus = client_focus;
|
focus = client_focus;
|
||||||
swap = client_swap;
|
swap = client_swap;
|
||||||
|
master = client_master;
|
||||||
movetotag = client_movetotag;
|
movetotag = client_movetotag;
|
||||||
toggletag = client_toggletag;
|
toggletag = client_toggletag;
|
||||||
togglefloating = client_togglefloating;
|
togglefloating = client_togglefloating;
|
||||||
|
|
Loading…
Reference in New Issue