Dunst: make separator invisible

Created on 13 Jun 2014  ·  5Comments  ·  Source: dunst-project/dunst

It would be cool to be able to make the separator invisible.
That way the notifications would be separated not by a line but simply by space.

It could be done by a new Variable separator_transperency or by assigning the value "invisible" to separator_color

Feature graphics

Most helpful comment

Oh boy.. I really want this.

All 5 comments

I just had a go at this, and unfortunately it's slightly more complicated than I had hoped.

The problem is that dunst makes one big cairo surface for all notifications; making one _part_ of this completely transparent is not something I was able to do. Using cairo_set_source_rgba(0, 0, 0, 0) makes it have the colour of the root window, as far as I have been able to figure out, setting it to "real" transparency, is not something cairo could do (I have never used cairo before, so I may be wrong).

The only way to support this, AFAIK, is rewriting quite a bit of the drawing code...

A better idea might be to switch the complete color logic to 32bit RGBA when the x server supports it and a compositor is running. I guess something using cairo_xlib_surface_create_with_xrender_format might work.
Edit: Then you can set _all_ color values with alpha transparency

Oh boy.. I really want this.

It's been a very long time. Any update on this?

Implemented with #717, now all color strings support transparency.

Was this page helpful?
0 / 5 - 0 ratings