Mischievous notifications with long messages

Is there a way around the character limit of naughty notifications? I don't know what this limit is, but they seem to truncate after a certain length. I use orglendar and it summarizes my google calendar events in a single message / panel, which is very convenient.

The problem is that if I have more than 4 or so events, they tend to go too long and cut off. The resulting message ends up being somewhat unreadable due to incorrect parsing due to truncated </span> tags.

Alternatively, since the notification messages probably weren't designed for long lists like this for starters, is there an alternative widget that I could change instead of orglendar?

+6
source share
1 answer

Looking at the orglendar code , it seems you could just twist the calendar_width variable at the top of the script to a larger value.

Alternatively, naughty documentation tells you that you can use nil width to get automatic width. If this is what you want, you can simply modify orglendar to reflect it. At the bottom of the orglendar.lua file (line 268), just comment out or delete the width parameter:

 calendar = naughty.notify({ title = header, text = cal_text, timeout = 0, hover_timeout = 0.5, -- width = calendar_width * char_width, screen = mouse.screen, }) 
0
source

Source: https://habr.com/ru/post/970252/


All Articles