summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2017-07-17 09:57:26 +0200
committerPeter Palfrader <peter@palfrader.org>2017-07-17 09:57:26 +0200
commitb2e239124b5781d68c544a73e85f617840609570 (patch)
tree97dc263ba26dff3ce34f7e31408ba22a9b6d72d6
parent6a0d1f0d206943dd643814f9b9f9fd3499149a06 (diff)
Move along when moving clients with mod+ctrl+num, add mod+alt+num to just move the client away
-rw-r--r--config/awesome/rc.lua27
1 files 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]