dwm-flexipatch
dwm-flexipatch copied to clipboard
Please add splitstatus patch
Hi, could you please add the splitstatus patch
Wouldn't you just use extrastatus for this?
As an example I think you'd reproduce the splitstatus patch with rules like these:
static const BarRule barrules[] = {
/* monitor bar alignment widthfunc drawfunc clickfunc name */
{ -1, 0, BAR_ALIGN_LEFT, width_tags, draw_tags, click_tags, "tags" },
{ -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, "layout" },
{ 'A', 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_status, "status" },
{ 'A', 0, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_status, "status_es" },
};
Perhaps, its to get the date in the center of the bar. How would I do that with extrastatus?
On Wed, Oct 20, 2021 at 12:48:48AM -0700, Stein Gunnar Bakkeby wrote:
Wouldn't you just use extrastatus for this?
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/bakkeby/dwm-flexipatch/issues/192#issuecomment-947414351
-- Kind regards,
Chris Garvin
The splitstatus uses a semicolon to separate the statuses. It is merely based on the dualstatus and extrabar patches.
I guess you'd just run something like this.
$ xsetroot -name "right status;$(date +%F\ %T)"
I works, but the extra status is in the center on the bottom of my screen instead of in the center of the bar
On Wed, Oct 20, 2021 at 01:06:15AM -0700, Stein Gunnar Bakkeby wrote:
The splitstatus uses a semicolon to separate the statuses. It is merely based on the dualstatus and extrabar patches.
I guess you'd just run something like this.
$ xsetroot -name "right status;$(date +%F\ %T)"
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/bakkeby/dwm-flexipatch/issues/192#issuecomment-947427097
-- Kind regards,
Chris Garvin
In the bar rules set the bar
index to 0 for the extra status to have it on the primary bar.
/* monitor bar alignment widthfunc drawfunc clickfunc name */
{ 'A', 0, BAR_ALIGN_CENTER, width_status_es, draw_status_es, click_status, "status_es" },