You are not logged in.
There is no green or red text in a diff file, it's just a plain text file. Some viewers will syntax-highlight it that way though. Lines starting with "+" are to be added. Lines starting with "-" are to be removed. Lines starting with neither of these are just to provide context.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I just had a brief experiment with GNOME 3.10 in combination with DWM. I'm sure most of you are aware of the new GtkHeader widget, which basically takes away all the window manager decorations and lets the client have its own close button. It looks nice (imo) but 1) only very few core GNOME applications use it at the moment (only two in my setup) and 2) DWM's borders dissapear around these applications.
Before I make myself ridiculous by asking about this issue on the Suckless mailing list, I'd like to know: is there a workaround you can think of? I think this will also affect other tiling window managers (honestly, I haven't tested) that use Xlib.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I for one had not heard of this new widget - but that's not saying much, I'm not a widget fan. But I could test this in other WMs if you can give an example of one of those very few programs that use it ... preferably one with few dependencies.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Well, they're all GNOME applications so you're going to haul in a bit of dependencies... The two that used it in my system were Nautilus and gnome-system-monitor. I think I know which of the two you're going to pick.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I just installed gnome-system-monitor (and 130MB of other stuff!), but I don't see anything like what you describe. First, the window does keep a border if my WM is set to have window borders, but I also don't see anything resembling this header widget. Does it need to be configured or activated some how?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oh, I forgot to mention you have to be on [testing] to use GNOME 3.10 at the moment. Sorry
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Perhaps I'll revisit this when it hits the main repos then.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
That's fine by me, thanks for initially wanting to try it out! FWIW, I also don't run testing - I just upgraded to it to see the new widget and then quickly downgraded again, not just because I also prefer stable but also out of dissapointment of how few applications actually use it. For now, and at least until GNOME 3.12, this only brings more fragmentation...
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Practically I use the base code, I have made only a few changes in config.h. However there is one thing I would like to change: make the selection of tags inverted BUT the statusbar should remain unchanged (i.e not inverted). If I change the selfgcolor and selbgcolor the statusbar gets affected too. Is there a patch for this and if so which one is that? Thanks.
Offline
The statuscolors patch would make this straightforward, but it may be (a lot) more than you are looking for...
Offline
Change the following line in drawbar() like this:
drawtext(tags[i], col, urg & 1 << i);
to
drawtext(tags[i], col, True);
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Hello Unia, if I do this the normal background color for tags gets "normfgcolor" not the "normbgcolor". Otherwise the selected tags and the statusbar colors are OK.
Offline
The statuscolors patch would make this straightforward, but it may be (a lot) more than you are looking for...
I have found this patch for version 5.9 on suckless' site - can I use it for 6.0 too?
Offline
Does it work if you swap those normal colors in config.h? I think that is the quickest solution I can come up with.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Unofrunately not, now the unused / empty statusbar and the text set by xsetroot pick up the "correct" colors (so they look like selected all the time). Thanks anyway, probably I will check the statuscolor patch.
Offline
jasonwryan wrote:The statuscolors patch would make this straightforward, but it may be (a lot) more than you are looking for...
I have found this patch for version 5.9 on suckless' site - can I use it for 6.0 too?
There are versions for 6.0 floating around, including in my bitbucket repo :-)
Offline
Oh of course... Excuse me totolotto, I should not try to help people when I'm also doing homework... :eyeroll: Although I do believe this can be achied with a simple change in drawbar()...
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
totolotto wrote:jasonwryan wrote:The statuscolors patch would make this straightforward, but it may be (a lot) more than you are looking for...
I have found this patch for version 5.9 on suckless' site - can I use it for 6.0 too?
There are versions for 6.0 floating around, including in my bitbucket repo :-)
and now on my laptop too, downloaded from your repo:) Thank you!
Offline
Oh of course... Excuse me totolotto, I should not try to help people when I'm also doing homework... :eyeroll: Although I do believe this can be achied with a simple change in drawbar()...
No problem.
Well I have very basic knowledge in C so I am just hoping someone can find this out (if anybody interested at all). Meanwhile I will look into the statuscolor patch.
Offline
I have one in my dwm-patches repository: https://github.com/Unia/dwm-patches
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I don't maintain patches, but I incorporate the patch into my 'fork' (version?) of dwm here: https://github.com/bbenne10/dwm
EDIT: Unia beat me to it
Last edited by synorgy (2013-11-04 17:37:18)
"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)
Offline
anyone know how ti seperate fonts, so tags would be in bold font and title of window in regular font. Maybe there is patch which i can't find, or something simillar which will guide me forward.
Offline
@ markoer
Try this http://lists.suckless.org/dwm/att-6447/ … dfont.diff but it is quite old.
Last edited by ivoarch (2013-11-18 12:22:07)
Offline