From: Wojciech A. <ani...@co...> - 2015-09-30 09:15:06
|
Just as a late comment, I just spent one day using Awesome WM. [My Notion Git snapshot got fried by lua version confusion (5.1? 5.2?) and I needed a fallback WM.] So, Awesome has the exact workspace numbers set (left upper corner) I was thinking about. I will not post screenshots, as it is easy to check out. It is an useful feature. Now, back and comfty in Notion:) regards -WA On Tue, Jun 30, 2015 at 02:55:53PM +0200, Arnout Engelen wrote: > Hello Wojciech, > > WRegion.is_active might come in handy. For example: > > % echo "result = ''; notioncore.region_i(function (r) result = result .. > WRegion.name(r) .. ';' .. tostring(WRegion.is_active(r, true)) .. '|'; > return true end, 'WGroupWS'); return result" | > mod_notionflux/notionflux/notionflux > "*scratchws*<4>;false|WGroupWS;true|WGroupWS<1>;false|WGroupWS<3>;false|" > > .. when I was on the workspace named 'WGroupWS'. Does that help? > > > Arnout > > On Mon, Jun 29, 2015 at 7:25 PM, Wojciech Aniszewski <ani...@co...> > wrote: > > > > 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! | > > `-------------------------------------" > > -- 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! | `-------------------------------------" |