Skip to content

Instantly share code, notes, and snippets.

@tomoyat1
Created February 27, 2017 02:37
Show Gist options
  • Save tomoyat1/d562d73768630efb915650ba3d7879f3 to your computer and use it in GitHub Desktop.
Save tomoyat1/d562d73768630efb915650ba3d7879f3 to your computer and use it in GitHub Desktop.
Patch to make tyrannical match cilents to tags on clients moving to another screen
diff --git a/init.lua b/init.lua
index 4e2791a..0e94bdb 100755
--- a/init.lua
+++ b/init.lua
@@ -184,12 +184,14 @@ end
--Match client
local function match_client(c, forced_tags, hints)
-- Don't prevent tags from being drag and dropped between screens
+ --[[
if hints and hints.reason == "screen" then
c:tags {c.screen.selected_tag}
return true
end
+ --]]
- if (not c) or #c:tags() > 0 then return end
+ --if (not c) or #c:tags() > 0 then return end
local props = c.startup_id and sn_callback[tostring(c.startup_id)] or {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment