LemonBoy/bar — pull request #10 by c00kiemon5ter (2012-08-17 00:47:27+00:00)
Title: add bar width and leading offset configuration options

Adds `BAR_WIDTH` and `OFFSET` configuration options.

`OFFSET` defines where the window of the bar should be on the _x_ axis.
If set to 0, the the bar is placed where it is placed now ( `(0, 0)` )

`BAR_WIDTH` sets the width of the bar.
If set to 0 then the whole screen width is used, minus the offset.
This is done, so that the bar fits the screen, if offset was set.
If the offset is too big, then the width is reset to the screen width.
If offset is also 0, then the whole screen width is used.

I am not sure whether `OFFSET` would be better named `BAR_OFFSET`..

---

#### rationale

Lately I use two monitors with monsterwm's xinerama-init branch.
The one is small, and I'd prefer to hide the statusbar, but hiding it
also hides the desktop information, because bar expands to the
whole screen width.
I use this to show the bar only on the large monitor, by setting an
offset of 1280 (the small monitor's resolution/width). Width stays 0,
so that the bar expands to the whole width of the large monitor.

So, I dont really use `WIDTH` but thought it might be useful to others,
ie setting an offset and width to get the bar to cover only rigth half of
the screen, so one can use it above dwm's statusbar .. etc

Anyway, If you think this is useful, pull :zap: