Replaced double loop with a single one.
Unless I am missing something there is no purpose of using two loops instead of one. Signed-off-by: Alex Cornejo <acornejo@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
96cf05f002
commit
7fc8f4abc7
|
@ -299,21 +299,19 @@ for i = 1, keynumber do
|
||||||
awful.client.toggletag(tags[client.focus.screen][i])
|
awful.client.toggletag(tags[client.focus.screen][i])
|
||||||
end
|
end
|
||||||
end))
|
end))
|
||||||
|
table.insert(globalkeys,
|
||||||
|
key({ modkey, "Shift" }, "F" .. i,
|
||||||
|
function ()
|
||||||
|
local screen = mouse.screen
|
||||||
|
if tags[screen][i] then
|
||||||
|
for k, c in pairs(awful.client.getmarked()) do
|
||||||
|
awful.client.movetotag(tags[screen][i], c)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
for i = 1, keynumber do
|
|
||||||
table.insert(globalkeys, key({ modkey, "Shift" }, "F" .. i,
|
|
||||||
function ()
|
|
||||||
local screen = mouse.screen
|
|
||||||
if tags[screen][i] then
|
|
||||||
for k, c in pairs(awful.client.getmarked()) do
|
|
||||||
awful.client.movetotag(tags[screen][i], c)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end))
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Set keys
|
-- Set keys
|
||||||
root.keys(globalkeys)
|
root.keys(globalkeys)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
Loading…
Reference in New Issue