Add client_zoom

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
TANABE Ken-ichi 2008-06-18 19:47:39 +09:00 committed by Julien Danjou
parent 1edaef8247
commit 95c8e05c4d
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;