From 6dc147d3d6d6179d4cebc5959589c25ae424fa46 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 2 May 2014 19:13:27 -0400 Subject: [PATCH] Dynamically make a tag 'fallback' --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index ee77f23..c2a7ca8 100755 --- a/init.lua +++ b/init.lua @@ -268,6 +268,10 @@ awful.tag.swap = function(tag1,tag2) awful.tag.move(idx2,tag1) end +capi.tag.connect_signal("property::fallback",function(t) + fallbacks[awful.util.table.hasitem(fallbacks, t) or (#fallbacks+1)] = prop(t,"fallback") and t or nil +end) + --------------------------OBJECT GEARS--------------------------- local getter = {properties = setmetatable({}, {__newindex = function(table,k,v) load_property(k,v) end}), settings = settings, tags_by_name = tags_hash, sn_callback = sn_callback}