awesomerc: simplify

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-05 15:57:21 +02:00
parent 996e197ffb
commit 7a80fc8fee
1 changed files with 8 additions and 11 deletions

View File

@ -194,19 +194,17 @@ for i = 1, keynumber do
end):add() end):add()
keybinding({ modkey, "Shift" }, i, keybinding({ modkey, "Shift" }, i,
function () function ()
local sel = client.focus if client.focus then
if sel then if tags[client.focus.screen][i] then
if tags[sel.screen][i] then awful.client.movetotag(tags[client.focus.screen][i])
awful.client.movetotag(tags[sel.screen][i])
end end
end end
end):add() end):add()
keybinding({ modkey, "Control", "Shift" }, i, keybinding({ modkey, "Control", "Shift" }, i,
function () function ()
local sel = client.focus if client.focus then
if sel then if tags[client.focus.screen][i] then
if tags[sel.screen][i] then awful.client.toggletag(tags[client.focus.screen][i])
awful.client.toggletag(tags[sel.screen][i])
end end
end end
end):add() end):add()
@ -432,9 +430,8 @@ awful.hooks.arrange.register(function (screen)
-- Uncomment if you want mouse warping -- Uncomment if you want mouse warping
--[[ --[[
local sel = client.focus if client.focus then
if sel then local c_c = client.focus:coords()
local c_c = sel:coords()
local m_c = mouse.coords() local m_c = mouse.coords()
if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or