From: martin f. krafft Date: Thu, 31 Jul 2008 09:05:03 +0000 (+0200) Subject: follow config changes X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/e2377c69edfbd7e0e577ed3d88b8a9735fd6212f follow config changes --- 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