From: Wojciech A. <ani...@co...> - 2015-06-29 17:25:35
|
> To for example get the list of workspace names, you could write a > notionflux script like this: > > echo "result = ''; notioncore.region_i(function (r) result = result .. > WRegion.name(r) .. '|'; return true end, 'WGroupWS'); return result" | > notionflux > > Which would return your workspace names (including the 'scratch' workspace) > separated by pipes. That might be a starting point to get what you're > looking for? > Well, yes it could, it works nicely. However, I don't know the proper lua to produce not only the list of currently existing workspaces, but the one being displayed right now. So, for the moment, when I call the script, notionflux returns: "*scratchws*|WGroupWS|WGroupWS<1>|WGroupWS<2>|WGroupWS<4>|duh|" meaning I have 5 workspaces + scratch. What I would like, is for notionflux to write something like: 25 "*scratchws*|WGroupWS-foo|WGroupWS<1>|WGroupWS<2>|WGroupWS<4>|duh|" while I'm displaying 'WGroupWS' but 25 "*scratchws*|WGroupWS|WGroupWS<1>|WGroupWS<2>|WGroupWS<4>|duh-foo|" while I diplaying (switching to) workspace 'duh'. Let's be more specific and add that "displaying" something means (I'm on singlehead display) that my focus is there, as in I'm typing to a terminal that's there:) To ilustrate even further, check out this guy's Awesome WM screenshot: http://img05.deviantart.net/1f6a/i/2011/242/2/a/tronminull_theme_in_awesome_wm_by_xenull-d48da2a.png In fact, my notion setup looks quite similar, except it's more greenish:) So in the top-left corner, you can see he has and indicator (four squares) of which workspace he's currently on. Voila c'est ca... regards -WA -- Wojtek Aniszewski [Fr: vôitek anichévsky] [Eng: voyteck aanishevsky] www: http://www.coria.fr/spip.php?auteur1606 /^..^\ ,-------------------------------------, ( (••) ) ►►►►| My public GPG key ID: AC66485E | (|)_._(|)~ | please use email encryption! | `-------------------------------------" |