From b2e239124b5781d68c544a73e85f617840609570 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 17 Jul 2017 09:57:26 +0200 Subject: Move along when moving clients with mod+ctrl+num, add mod+alt+num to just move the client away --- config/awesome/rc.lua | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index dca0a84..98f5fde 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -397,22 +397,33 @@ globalkeys = awful.util.table.join( local tag = screen.tags[i] if tag then tag:view_only() end end), - -- Toggle tag. - awful.key({ modkeytag, "Shift" }, tag_keys[i], function () - local screen = awful.screen.focused() - local tag = screen.tags[i] - if tag then awful.tag.viewtoggle(tag) end - end), - -- Move client to tag. + -- Move client to tag, and follow awful.key({ modkeytag, "Control" }, tag_keys[i], function () if client.focus then local tag = client.focus.screen.tags[i] if tag then client.focus:move_to_tag(tag) + -- and follow + tag:view_only() end end end), - -- Toggle tag. + -- Move client to tag without following + awful.key({ modkeytag, "Mod1", }, tag_keys[i], function () + if client.focus then + local tag = client.focus.screen.tags[i] + if tag then + client.focus:move_to_tag(tag) + end + end + end), + -- Toggle tag visbility + awful.key({ modkeytag, "Shift" }, tag_keys[i], function () + local screen = awful.screen.focused() + local tag = screen.tags[i] + if tag then awful.tag.viewtoggle(tag) end + end), + -- Toggle tag for client awful.key({ modkeytag, "Control", "Shift" }, tag_keys[i], function () if client.focus then local tag = client.focus.screen.tags[i] -- cgit v1.2.3