Re: [i3] memory display

2014-11-16 Thread Sean Reifschneider
On 11/16/14 12:50, Michael Stapelberg wrote:
> pros/cons of that behavior :). Exactly this type of subtleties is why
> i3status is memory-agnostic.

You know, I understand that, but I'm not sure I agree with the stance of
not showing memory.  There are, I think, a few compelling (note I didn't
say "good") reasons to show memory and CPU utilization:

- Some people understand it well enough to make use of it.
- Some people want to see it despite not understanding it.
- Other tools will show it, so understanding or not it is a "missing"
  feature.
- Some people are more constrained on having "more than enough" memory due
  to either finances or hardware limits.

CPU utilization can be nice, IMHO, mostly for cases where I have a run-away
process I wasn't aware of.

Personally, I rarely use memory or CPU displays on my desktop.  I'm not
saying I don't periodically look at memory available, but it is infrequent,
usually before doing something that might be a huge job like running "vi"
on a 7GB file.  Also, I'm a fairly minimal desktop user in general.  On my
laptop I have 10GB free RAM (ignoring buffers/cache, 911MB including them).

The decision doesn't really impact me, because I don't tend to use them,
but I can't say I agree with the decision.  :-)

Sean


Re: [i3] memory display

2014-11-16 Thread Sean Reifschneider
On 11/16/14 09:02, Michael Stapelberg wrote:
> I’d argue that you should disable swap entirely, so that the graphics
> application in question can detect an out of memory situation and

It would be nice if it worked that way, but regretfully it does not.
I don't know exactly what the situation is, but we had some servers that
would have a process periodically run out of control on memory, and
disabling swap made the problem worse if anything.

To achieve this you probably need to tweak settings in /proc rather than
just shut off swap.

Sean


Re: [i3] Struggling to build i3 4.8 on centos 6.5 - but almost there

2014-10-28 Thread Sean Reifschneider
On 10/28/14 06:46, Sargrad, Dave wrote:
> I am very close to building i3 4.8 on centos 6.5, and will post my procedures 
> once I get them to be clean. I’ve successfully built i3 4.8 in the past on 
> ubuntu 14.04, but am now moving to centos 6.5.

Have you tried getting the Rawhide SRPM and building it?

http://mirrors.tummy.com/pub/fedora.redhat.com/fedora/linux/development/rawhide/source/SRPMS/i/i3-4.8-5.fc22.src.rpm

Then use "rpmbuild --rebuild i3-4.8-5.fc22.src.rpm".

That's what I did to get 4.8 built on my Ubuntu system, but back-porting
the dpkg instead of the SRPM.

Leverage the work other's have already done.

Sean


Re: [i3] Suggestion: Configuration with lua

2014-10-04 Thread Sean Reifschneider
On 10/04/14 16:08, Timo Schmiade wrote:
> script i3 as it is now, you not only have to learn a programming
> language, you also need to write, run and maintain your own process
> communicating with i3.

I'm not sure it's reasonable to require everyone who wants to try i3 to
learn the bulk of a general purpose programming language just to make it
easier for the, I would imagine, much less frequent case of people who want
to script it.  On the other hand, it does seem reasonable to allow people
who want to do the scripting to learn the IPC side.

Personally, if i3 had used Lua to configure it, I probably wouldn't have
even given it a second look...  The simple, obvious configuration format
was part of the reason I selected i3.  This was because I came to i3 after
trying xmonad and awesome, both of which use general purpose programming
languages for configuration, neither of which I am familiar with, and both
of which I could barely get snippets of other people's configurations
working because the sheer amount of syntax you have to know to do so.

i3's configuration language isn't a drawback, it is a benefit.

Sean


Re: [i3] Re-tiling a bunch of windows?

2014-09-22 Thread Sean Reifschneider
On 09/17/14 11:18, Kareem wrote:
> So I guess you've heard about layout saving and restoring?

I just got my system updated to the latest i3, and rebooted to get this and
other updates active.  It works quite well for this need, thanks!

Sean


Re: [i3] Re-tiling a bunch of windows?

2014-09-17 Thread Sean Reifschneider
On 09/17/14 11:18, Kareem wrote:
> So I guess you've heard about layout saving and restoring?
> 
> http://i3wm.org/docs/layout-saving.html

I hadn't, I guess it is pretty recent?  Looks like I'll have to grab the
Ubuntu 14.10 package, which is 4.8, and build it on my 14.04 system, but
that should be doable.  I'll have to give that a shot, but it looks like it
might work for this.

Thanks,
Sean


[i3] Re-tiling a bunch of windows?

2014-09-17 Thread Sean Reifschneider
A few months ago I came back to I3 after having tried a few other things (KDE
again, tried Awesome).  But in the end I just really kept wanting to come back
to I3.

However, one thing that Awesome had that I'm really missing from I3 is an
ability to re-tile a bunch of windows.  In particular, I often run "cssh"
which opens 15 to 30 windows, and I'm manually going in and moving them left
or right to get them into a 3 or 4 different columns.  It sure would be nice
if there was a way to say "Reflow all my windows into 4 columns, evenly".

With Awesome it is more of a stack, and you have the "primary" window, so it
is easy enough to move things up and down that stack, so it isn't a big deal
how it orders the windows.  But in this case, I really don't care how it
orders them.

I will admit that I kind of missed the "primary window" idea and the ability
to swap things with the primary window.  But mostly what I'm doing right now
is to either "full screen" the window I want to focus on, or I switch the
container layout so that it becomes full height -- which means I lose other
windows in that stack, but I still have other stacks I can use for viewing on
the screen while in my "primary" window.

Anyway, I'm wondering what the right approach would be to get this re-flowing
to happen.  Would it be something internal to i3, where maybe there are a few
layouts you could choose from?  Or is this doable from an external script?  I
haven't done any i3 external scripting before.

Thanks,
Sean