From: Wojciech A. <ani...@co...> - 2015-06-26 16:10:32
Attachments:
signature.asc
|
Hi there. Is there any way to display workspace number? I'm using a custom made dzen status bar, I'd like to see the number there. Can this be done? -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! | `-------------------------------------" |
From: Arnout E. <no...@bz...> - 2015-06-28 20:33:01
|
Hi Wojciech, Thanks for your question. I'm not exactly sure what you'd like to see though. 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? Kind regards, Arnout On Fri, Jun 26, 2015 at 6:10 PM, Wojciech Aniszewski <ani...@co...> wrote: > Hi there. > Is there any way to display workspace number? > I'm using a custom made dzen status bar, I'd like to see the number there. > Can this be done? > > -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! | > `-------------------------------------" > > > ------------------------------------------------------------------------------ > Monitor 25 network devices or servers for free with OpManager! > OpManager is web-based network management software that monitors > network devices and physical & virtual servers, alerts via email & sms > for fault. Monitor 25 devices for free with no restriction. Download now > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o > _______________________________________________ > Notion-general mailing list > Not...@li... > https://lists.sourceforge.net/lists/listinfo/notion-general > > |
From: Wojciech A. <ani...@co...> - 2015-06-29 17:25:35
Attachments:
signature.asc
|
> 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! | `-------------------------------------" |
From: Arnout E. <no...@bz...> - 2015-06-30 12:56:01
|
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! | > `-------------------------------------" > |
From: Wojciech A. <ani...@co...> - 2015-09-30 09:15:06
Attachments:
signature.asc
|
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! | `-------------------------------------" |