16 Commits

Author SHA1 Message Date
Nikos Tsipinakis
7e58e5c64c Add expandtab to vim modelines & expand abbreviations
Add expandtab to vim modelines so that spaces are expanded to tabs, make
life easier for people that have vim configured to use tabs by default.

Expand modeline abbreviations to improve readability.
2016-11-17 20:27:46 +02:00
Jakob Nixdorf
8ee86dc477 add initial support for per-urgency frame-colors 2016-11-06 16:52:13 -03:00
Andrew Krasichkov
a6d9626c54 Try to support raw image data (see knopwob/dunst#151 ) 2016-03-09 18:37:04 +02:00
Yuri D'Elia
b5e00c43c7 Fix markup handling.
The current "allow_markup" setting will simply strip any markup from the final
notification, which includes formatting elements. On top of that, literal
[<>&..] symbols are not quoted before are being passed onto pango in several
places, resulting in stray error messages.

This patch fixes allow_markup to correctly strip markup only from the incoming
notification, not from the format.

You might also want to treat incoming messages as literal text (supplied by
un-aware programs), in which case you need to properly quote the text before
it's processed by pango. A new setting is introduced, called "plain_text",
which forces incoming messages to be treated literally.

allow_markup/plain_text are complimentary to each other.

The new rule actions allow to narrow down the handling to a specific block,
achieving notification Zen.

The following is done in this patch:

- Fix ruleset initialization in config.def.h.
- Introduce new allow_markup/plain_text actions in the rules.
- Fix handling of allow_markup to strip markup from summary/body only,
  preserving format's markup.
- Fix broken string functions (string_replace_all didn't handle recursive
  replacements correctly).
- Fix quoting of other literal fields (icon name/appname).
- Fix handling of ignore_newline as well (applied only on summary/body).
- Dunstrc update with the same previous defaults.
2014-12-05 16:05:41 +01:00
Sascha Kruse
3cd7f24fdd config for max history length
fix #177
2014-06-16 20:54:06 +02:00
Sascha Kruse
1ccb6185ac allow rule matching against category
fix issue #135
2014-03-08 15:03:38 +01:00
Sascha Kruse
fb8eafe3fa show pango markup errors only once
see also #111
2013-06-29 00:50:57 +02:00
Giuliano Schneider
a25e810b67 fixed "warning: assignment discards ‘const’ qualifier from pointer target type" 2013-04-30 15:01:07 +02:00
Sascha Kruse
9931512315 only add timeout when it hits before any existing timeout 2013-03-08 07:27:19 +01:00
Sascha Kruse
c612822057 sleep until notification times out or we need redraw 2013-03-08 04:15:47 +01:00
Sascha Kruse
ced9186cf1 removed the rest of old drawing code 2013-02-22 18:36:24 +00:00
Sascha Kruse
64a7dd9743 move text generation to notification code 2013-02-22 10:47:11 +00:00
Sascha Kruse
cff9c74e0e License header and vim modeline 2013-02-22 06:09:13 +00:00
Sascha Kruse
e82da9d5e7 indent -linx --no-tabs 2013-02-21 23:23:54 +00:00
Sascha Kruse
f88cc4e831 renamed draw.{c,h} x.{c,h} 2013-02-21 20:03:00 +00:00
Sascha Kruse
4e92d61804 notification.{c,h} 2013-02-21 18:02:20 +00:00