awesomerc: simplify
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
996e197ffb
commit
7a80fc8fee
|
@ -194,19 +194,17 @@ for i = 1, keynumber do
|
|||
end):add()
|
||||
keybinding({ modkey, "Shift" }, i,
|
||||
function ()
|
||||
local sel = client.focus
|
||||
if sel then
|
||||
if tags[sel.screen][i] then
|
||||
awful.client.movetotag(tags[sel.screen][i])
|
||||
if client.focus then
|
||||
if tags[client.focus.screen][i] then
|
||||
awful.client.movetotag(tags[client.focus.screen][i])
|
||||
end
|
||||
end
|
||||
end):add()
|
||||
keybinding({ modkey, "Control", "Shift" }, i,
|
||||
function ()
|
||||
local sel = client.focus
|
||||
if sel then
|
||||
if tags[sel.screen][i] then
|
||||
awful.client.toggletag(tags[sel.screen][i])
|
||||
if client.focus then
|
||||
if tags[client.focus.screen][i] then
|
||||
awful.client.toggletag(tags[client.focus.screen][i])
|
||||
end
|
||||
end
|
||||
end):add()
|
||||
|
@ -432,9 +430,8 @@ awful.hooks.arrange.register(function (screen)
|
|||
|
||||
-- Uncomment if you want mouse warping
|
||||
--[[
|
||||
local sel = client.focus
|
||||
if sel then
|
||||
local c_c = sel:coords()
|
||||
if client.focus then
|
||||
local c_c = client.focus:coords()
|
||||
local m_c = mouse.coords()
|
||||
|
||||
if m_c.x < c_c.x or m_c.x >= c_c.x + c_c.width or
|
||||
|
|
Loading…
Reference in New Issue