Skip to content

Instantly share code, notes, and snippets.

@farhaven
Created December 10, 2010 23:39
Show Gist options
  • Save farhaven/736986 to your computer and use it in GitHub Desktop.
Save farhaven/736986 to your computer and use it in GitHub Desktop.
for s = 1, screen.count() do
awful.tag.attached_add_signal(s, "property::selected", function(tag)
local idx = nil
for i, v in pairs(screen[s]:tags()) do
if v == tag then
idx = i
break
end
end
if not idx then return end
for x = 1, screen.count() do
if x ~= s then
awful.tag.viewonly(screen[x]:tags()[idx])
end
end
end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment