elenapan / dotfiles

There is no place like ~/
GNU General Public License v2.0
3.51k stars 175 forks source link

Ellipsis (...) in notification #114

Open 1999lucnguyen opened 4 years ago

1999lucnguyen commented 4 years ago

Hello,

At times, when a notification pops up, the message will be truncated and an ellipsis will be added to the message even if the message should be able to fit in the notification box:

2020 09 07-00 17 19 screenshot

I've tried setting ellipsize to none for the message widget but this is what happens:

2020 09 07-00 23 22 screenshot

I've also tried changing the theme's notification_max_height, but it doesn't seem to be helping (probably because the widget thinks it has the correct size when it does not).

Is there a fix for this or is the problem from awesomewm?

Thank you so much! Luc

(I am using the "amarena" notification theme.)

elenapan commented 4 years ago

Hi there,

I also have the same issue. Not sure if it is an AwesomeWM bug. It could be that I need to write the template differently.

My workaround is to set the wrap property for the notification message like so:

  {
      align = "center",
+     wrap = "char",
      widget = naughty.widget.message,
  },

But please keep this issue open until I investigate or re-write the notification template so it works properly with or without word wrapping.

1999lucnguyen commented 4 years ago

Thanks! I'll let you know if I figure something out as well.