phuhl / linux_notification_center

A notification daemon/center for linux
BSD 3-Clause "New" or "Revised" License
990 stars 39 forks source link

Any more customizations? #2

Closed hrqmonteiro closed 5 years ago

hrqmonteiro commented 5 years ago

I was looking for a replacement for Dunst since it doesn't support rgba so i cannot make the background transparent and the text non-transparent so i installed deadd

Is there any way of customize the deadd on things like font, 1 or 2 line notifications, any way of hiding the name of the app which the notification comes from, and stuff like that? I would really like to. Thanks.

phuhl commented 5 years ago
hrqmonteiro commented 5 years ago

I mean like this, like is shown on Dunst: 2019-01-14-210734_255x59_scrot

You can edit whats shown on the notification and choose it by yourself, i mean if i make a notify-send for my ncmpcpp i can choose if i want the Artist on the first line and then the album and the song on the second line, for example. And the icons are a good thing too.

If these stuff could be implemented it would be great! Like, having the same amount of options as Dunst but with the notification-center and the argb, which is already excelent stuff. Your script would be the best notification daemon client. I would even happily donate for something like that, i mean, cause Dunst really lack these stuff.

hrqmonteiro commented 5 years ago

And about the hiding the app which the notification comes from, i only want these for the sake of the design i'm trying to implement on my ricing, just that

phuhl commented 5 years ago

I mean like this, like is shown on Dunst: 2019-01-14-210734_255x59_scrot

You can edit whats shown on the notification and choose it by yourself, i mean if i make a notify-send for my ncmpcpp i can choose if i want the Artist on the first line and then the album and the song on the second line, for example. And the icons are a good thing too.

If these stuff could be implemented it would be great! Like, having the same amount of options as Dunst but with the notification-center and the argb, which is already excelent stuff. Your script would be the best notification daemon client. I would even happily donate for something like that, i mean, cause Dunst really lack these stuff.

On my system notify-send "So many lines" "line 1\nline 2" produces:

temp

That's not what you want? I noticed that it, for some reason, only works on the body and not on the title. Also I noticed that my own notify-send.py script does not work like that, why ever... But good old notify-send does the trick. Or are you talking about rules like in dunst?

About the icons, at some point I will probably implement the dbus-icon-protocol-thing. But I think I will implement fonts first and you can probably get away with some icons with font-awesome (or similar).

phuhl commented 5 years ago

So, the font-thing and the hiding of the app name should both be covered by adding some more styling options to some elements. Should be an easy thing to do, this or next week, when I have time.

having the same amount of options as Dunst

That are a quite few, I probably will add some more eventually, but might take a bit, we'll see.

And thanks for the nice words, btw.

phuhl commented 5 years ago

I noticed that it, for some reason, only works on the body and not on the title. Also I noticed that my own notify-send.py script does not work like that, why ever... But good old notify-send does the trick.

https://github.com/phuhl/notify-send.py/commit/8290ea7a48b8c07bcf962bd91642bd436f1d2e1c fixes this. You can use \n and \t for the body and the message now, if you use notify-send.py

phuhl commented 5 years ago

You can now use your own font and hide arbitrary parts of notifications and more. See https://github.com/phuhl/linux_notification_center#more-styling-2-closed for more information.

hrqmonteiro commented 5 years ago

Very, very nice! Thank you.