the workspacelist like the focuslist

Evgeny Kurbatov <[email protected]>
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <[email protected]>
Hello!

I have a zillion applications running on more than ten workspaces so the
focuslist became unusable.  But focuslist has a nice feature, it sorted
by activity flag.  I wanted it for workspacelist and first I wrote this
hack into my cfg_local.lua just to try whether this way works or not:

function workspacelist_unsrt()
   local entries={}
   local iter_=addto(entries)

   local function addto(list)
      return function(tgt, attr)
		local e=menuentry(tgt:name(), function() tgt:goto() end)
		e.attr=attr;
		table.insert(list, e)
		return true
	     end
   end

   local function iter(obj)
      return (not obj_is(obj, "WGroupWS") or iter_(obj))
   end

   ioncore.region_i(iter)

   return entries
end


defbindings("WScreen", {
kpress(META.."Q", "mod_menu.menu(_, _sub, 'workspacelist_unsrt')"),
})


So, it didn't.  Nothing happend at all.  A hoped to see a menu with
unsorted list of workspaces.  What did I wrong?

Well, I'll be nice if someone promts me how to do a list of workspaces
recently used.


Best witches,
Evgeny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.