From 7fc8f4abc73f78139467efcab693ec04214b8846 Mon Sep 17 00:00:00 2001 From: Alex Cornejo Date: Tue, 17 Mar 2009 18:47:41 -0400 Subject: [PATCH] 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 Signed-off-by: Julien Danjou --- awesomerc.lua.in | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 8c6e49d8..3c6b3eeb 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -299,21 +299,19 @@ for i = 1, keynumber do awful.client.toggletag(tags[client.focus.screen][i]) 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 -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 root.keys(globalkeys) -- }}}