From e2377c69edfbd7e0e577ed3d88b8a9735fd6212f Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Jul 2008 11:05:03 +0200 Subject: [PATCH] follow config changes --- .config/awesome/rc.lua | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index bc3da28..b819f02 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -193,16 +193,20 @@ for i = 1, keynumber do end):add() keybinding({ modkey, "Shift" }, i, function () - local screen = mouse.screen - if tags[screen][i] then - awful.client.movetotag(tags[screen][i]) + local sel = client.focus_get() + if sel then + if tags[sel.screen][i] then + awful.client.movetotag(tags[sel.screen][i]) + end end end):add() keybinding({ modkey, "Control", "Shift" }, i, function () - local screen = mouse.screen - if tags[screen][i] then - awful.client.toggletag(tags[screen][i]) + local sel = client.focus_get() + if sel then + if tags[sel.screen][i] then + awful.client.toggletag(tags[sel.screen][i]) + end end end):add() end -- 2.39.5