From fd0e1022bb6769d50345ed0128b1e30b73ae55d2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 24 Nov 2008 17:50:01 +0100 Subject: [PATCH] awesomerc: simplify some bindings Signed-off-by: Julien Danjou --- awesomerc.lua.in | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 697cfc40..e84aa801 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -195,18 +195,14 @@ for i = 1, keynumber do end):add() keybinding({ modkey, "Shift" }, i, function () - if client.focus then - if tags[client.focus.screen][i] then - awful.client.movetotag(tags[client.focus.screen][i]) - end + if client.focus and tags[client.focus.screen][i] then + awful.client.movetotag(tags[client.focus.screen][i]) end end):add() keybinding({ modkey, "Control", "Shift" }, i, function () - if client.focus then - if tags[client.focus.screen][i] then - awful.client.toggletag(tags[client.focus.screen][i]) - end + if client.focus and tags[client.focus.screen][i] then + awful.client.toggletag(tags[client.focus.screen][i]) end end):add() end