-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to properly implement barpadding to the latest dwm-systray-dwmblocks patch (6.3); conditional block format at the end. #43
Comments
What does barpadding do? |
Is it like gaps for normal clients? |
Look at this---it seems related: issue 27. |
It's the patch which pushes the bar away from the corner.
I've checked this issue already, they're using 6.2, and most likely dwm-dwmblocks (without systray). I haven't gotten to the "clickability misalignement" issue yet, since I need to get the barpadding patch together with your dwm-systray-dwmblocks working first. |
I am sorry, it will require some time to fix and I am afraid I don't have it for now. |
It's alright, I got another question. Lemme know if I should open a separate issue for this or not. It's about outputting the content of pathc to pathu... I got this pathu script which shows the date-time:
What I want this pathu to look like is this: What I'm trying to achieve is when I click this pathu, it'll will change to the date format overwriting the time. Looking like this: Altogether toggling, or cycling from time to date format when clicked. I tried passing printf as an argument ( How would I write the pathc for this? Or the way you would go about it? |
Interesting (actually, these are the reasons I wrote dsblocks, there, since everything is handled by the same C program, these situations can be easily handled), you can use a tmpfile for this (you have to save the state somewhere, and a tmpfile is the only possiblity). Something like pathu
pathc
For more complicated cases, you can write something in the file with pathc and read it in pathu (using some default behaviou if the file doesn't exist). |
I'm having a tough time adding bakkeby's barpadding patch to my own build because I have little to no knowledge of C, and haven't fully grasped the codebase in terms of how it works yet.
Anyways, they have two versions of the patch, an old 6.3, and a new 6.3, and since I can't make sense of the latter, I tried with the older version.
Here's what I did:
My only problem as far as I know is transferring
drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0);
inside thedrawbar
function. I don't know how to do so since you made changes.For
XMoveResizeWindow
, I just made changes inside theresizebarwin
function. This line in particular:XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, w, bh);
toXMoveResizeWindow(dpy, m->barwin, m->wx + sp, m->by + vp, m->ww - 2 * sp, bh);
. I'm not sure if that's how it should be done, but I just did it that way.The rest of the changes were plug and play.
If It can help, here's my dwm.c without the barpadding patch.
I apologize for this mess of an "issue", and I would be grateful for any help you can provide!
The text was updated successfully, but these errors were encountered: