Re: [dev] wmii falling out of favor

2011-12-24 Thread dtk
Hey cls,

On 12/22/2011 04:57 PM, Connor Lane Smith wrote:
 On 22 December 2011 16:36, dtk d...@gmx.de wrote:
 nope, 32 is aplenty. Thing is, in wmii I create them on demand and name
 them dynamically (to reflect their purpose), which conveniently groups
 them as well. I just don't want the tag I do development of project A on
 to be on tag 5. Today. And on tag 6 is a browser with an interesting
 article. Today. But tomorrow, I wanna code on project B as well. Where
 would I put that? :/ It feels just soo static :|
 
 There's also nametag [1], which allows you to rename your tags at
 runtime, and a patch I wrote I could dig up which hides currently
 unused tags.

Yeah, that sounds pretty nice.

Well, you being so patient with me, I might as well get impolite -.-
So, what's the policy here? All future development in patches, so we
don't spoil that fancy 2K SLOC statistic everybody is so fond of? :/
*sceptic*

 Sounds weird. That would make for one tag per client then, for most of
 the time I can use only one client (basically) maximised.
 
 In dwm you can view multiple tags at the same time, which pulls all
 clients with that tag into view. (Which is really amazing once you get
 used to it. Other window managers just make me feel really
 constrained.)

yeah, remember that from awesome, rarely used it, felt like a rather
clumsy feature over there (might have been due to my key bindings).

Still think it's a pity you have to loose that grouping of clients into
topics if you need to have several tags per topic. I would like to have
my IDE and a browser with corresponding API on the same tag. Purely for
tidiness reasons :/

 I think that is the great power of the
 stacked layout. I can have clients grouped within one tag, but I don't
 need to watch them all of the time.
 
 That's why I suggested flextile; it has a 'deck' layout.
 
 I think so. No way to have one client 'maximised'?
 
 Monocle layout?

Yeah, will have to look into that. Is there a screenshot to be seen?
Always associated it with awesome's monocle(?) layout, which was very
inefficient as it comes to screen space, iirc.

 What if I need tree columns?
 
 I don't know what that means.

^^ I'm sorry. s/tree/three/

thx again
dtk



Re: [dev] [wmii] widgets with graphics?

2011-12-24 Thread dtk
On 12/22/2011 05:32 PM, Suraj N. Kurapati wrote:
 On Thu 22 Dec 2011 02:44:54 PM PST, dtk wrote:
 is there a way to have widgets in the status bar display images
 instead of utf8 symbols?
 
 I gave up on this approach for DWM and used dzen2 as my status bar
 instead:  https://github.com/sunaku/.dwm/blob/master/dwm-statusbar
 
 (Pictured at bottom of this screenshot: http://ompldr.org/vYnUyNg)
 
 dzen2 supports XBM and XPM images, which I use from sm4tik's icon set:
 https://github.com/sunaku/.dwm/tree/master/dwm-statusbar-icons

Uh. I like your differently colored symbols. Feeling a bit girlish today
;P Actually, I'm quite happy with your Rumai widgets right now,
displaying dialogs with gmessage instead of xmessage for some eye candy
and linking right click actions to gnome gui tools (power preferences
comes handy with the battery widget). Might pimp them with some color ;)

Thx anyway, might get handy if I have to drop WMII in the end :(
dtk




Re: [dev] wmii falling out of favor

2011-12-24 Thread Connor Lane Smith
On 24 December 2011 12:08, dtk d...@gmx.de wrote:
 So, what's the policy here? All future development in patches, so we
 don't spoil that fancy 2K SLOC statistic everybody is so fond of? :/
 *sceptic*

Hah. :) We fold in popular patches, slowly, so dwm doesn't become all
bloated and unstable. My personal view is that if we take our time we
can reduce each feature to its essential parts before adding another,
instead of just adding all the features at once and suddenly you have
huge amounts of code and it takes ages to pare it all down again.

This happened when we added a bunch of patches to dmenu all at the
same time; there were so many bugs generated as a result, mostly
patch-incompatibility. So while I think we *should* fold in some more
patches, and I don't really care about the SLOC limit, if we do we
ought to do it slowly, so we can keep on top of it.

A number of patches will remain separate though, since they are
configuration options, such as layouts and so on. That's fine, since
they can just be added to your config.h without changing dwm.c itself.
Things like nametag are worth considering, though.

 Yeah, will have to look into that. Is there a screenshot to be seen?
 Always associated it with awesome's monocle(?) layout, which was very
 inefficient as it comes to screen space, iirc.

I'm not sure a screenshot is necessary. It would just be a fullscreen
window. :p If you hide the status bar it's honestly *just* the window.

   What if I need tree columns?
 
  I don't know what that means.

 ^^ I'm sorry. s/tree/three/

Ah! col layout [1]? ;)

[1]: http://dwm.suckless.org/patches/columns

Thanks,
cls



Re: [dev] wmii falling out of favor

2011-12-24 Thread Bjartur Thorlacius
On 12/24/11, Connor Lane Smith c...@lubutu.com wrote:
 I'm not sure a screenshot is necessary. It would just be a fullscreen
 window. :p If you hide the status bar it's honestly *just* the window.
And a border, telling you whether it is focused or not (assuming a
non-zero borderpx).



Re: [dev] network usage graphs

2011-12-24 Thread Szabolcs Nagy
* hiro 23h...@googlemail.com [2011-12-24 02:00:47 +0100]:
 Deleting the first line of my log is currently done with sed 1d
 original.dattemp; mv temp original.dat. Is there no better way?

sed -i 1d original.dat



Re: [dev] network usage graphs

2011-12-24 Thread Anthony J. Bentley
On 12/24/11, Szabolcs Nagy n...@port70.net wrote:
 * hiro 23h...@googlemail.com [2011-12-24 02:00:47 +0100]:
 Deleting the first line of my log is currently done with sed 1d
 original.dattemp; mv temp original.dat. Is there no better way?

 sed -i 1d original.dat

That’s a GNUism.



Re: [dev] network usage graphs

2011-12-24 Thread Bjartur Thorlacius
On 12/25/11, Anthony J. Bentley anthonyjbent...@gmail.com wrote:
 On 12/24/11, Szabolcs Nagy n...@port70.net wrote:
 * hiro 23h...@googlemail.com [2011-12-24 02:00:47 +0100]:

 sed -i 1d original.dat

 That’s a GNUism.

What about $(rp sed 1d original.dat) ;)

To address the original (-er) question, I think moreutils sponge(1) is
the answer, filename duplication notwithstanding.
% sed 1d original.dat | sponge original.dat



Re: [dev] network usage graphs

2011-12-24 Thread Kai Hendry
On 25 December 2011 08:42, Anthony J. Bentley anthonyjbent...@gmail.com wrote:
 That’s a GNUism.

I really like the convenience of `sed -i`. How can this be proposed to
become some sort of POSIX standard (at a guess), so people can stop
whining when I use it in scripts?



Re: [dev] network usage graphs

2011-12-24 Thread Jeremy Jackins
Is there a reason for using a stream editor when you want to edit in-file?

echo '1d
w' | ed original.dat