You are not logged in.

#1276 2013-08-28 00:33:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

Online

#1277 2013-09-30 11:09:59

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1278 2013-09-30 11:17:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

Online

#1279 2013-09-30 11:29:04

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

Well, they're all GNOME applications so you're going to haul in a bit of dependencies... wink 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

#1280 2013-09-30 11:45:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

Online

#1281 2013-09-30 12:00:16

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1282 2013-09-30 14:19:27

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

Online

#1283 2013-09-30 14:36:02

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

That's fine by me, thanks for initially wanting to try it out! smile 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

#1284 2013-10-13 07:16:18

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1285 2013-10-13 07:44:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

The statuscolors patch would make this straightforward, but it may be (a lot) more than you are looking for...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#1286 2013-10-13 10:21:57

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1287 2013-10-13 12:46:15

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1288 2013-10-13 12:54:36

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

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?

Offline

#1289 2013-10-13 13:24:50

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1290 2013-10-13 14:53:37

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1291 2013-10-13 18:36:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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 :-)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#1292 2013-10-13 19:27:40

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1293 2013-10-13 19:28:46

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

jasonwryan wrote:
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

#1294 2013-10-13 19:38:24

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: DWM Hackers Unite! Share (or request) dwm patches.

Unia wrote:

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

#1295 2013-11-04 17:33:04

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

Hello. Does anyone have uselessgaps patch for dwm 6.0? There was one before in this thread but the link went down.

Offline

#1296 2013-11-04 17:35:54

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1297 2013-11-04 17:36:58

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

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 tongue

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

#1298 2013-11-04 17:52:02

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

Thanks a lot!

Offline

#1299 2013-11-17 13:10:25

markoer
Member
Registered: 2010-12-15
Posts: 57

Re: DWM Hackers Unite! Share (or request) dwm patches.

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

#1300 2013-11-18 12:21:39

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: DWM Hackers Unite! Share (or request) dwm patches.

@ 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)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

Board footer

Powered by FluxBB