56 Commits

Author SHA1 Message Date
Nikos Tsipinakis
ce623af5ae Remove unused verbosity variable 2017-05-04 17:49:31 +03:00
Nikos Tsipinakis
345a821d86 Use stdlibs boolean macros rather than Xlibs
'True' and 'False' are defined in Xlib.h

Since we use stdbool boolean 'true' and 'false' definitions in several
places, it's best not to mix boolean macros. So in the sake of
consistency switch to using the stdbool macros project-wide.
2017-02-12 21:17:38 +02:00
Eizen
ceddf57a31 Add history_ignore rule
Fixes #197
2017-02-11 15:35:32 -03:00
Nikos Tsipinakis
3024aed739 Use MARKUP_NULL in the default rules
Fix regression that can cause an underflow by setting the markup_level
enum to a static value(-1).
2017-02-08 20:50:23 +02:00
Nikos Tsipinakis
4e1b97f3cc Merge allow_markup and plain_text into markup
Merge the allow_markup and plain_text settings into a single setting.

These 2 settings had a similar function, allow_markup controlled whether
markup was parsed or stripped and plain_text whether the notification
was escaped and displayed as is.

To cover all the possible combinations of the settings mentioned above
`markup` can take the following values:

full:  The equivalent of allow_markup yes, plain_text no.
       Passes the text straight to pango with minimal parsing. All valid
       pango tags will be parsed.

strip: The equivalent of allow_markup no, plain_text no.
       Strips the markup using string_strip_delimited. The parsing is
       simplistic and if there are any unescaped '<' and/or '>'
       characters it might get tripped and strip out actual text.

       According to the GNOME notification specification, if a server
       doesn't support markup(and we don't advertise that we do if it is
       turned off) it should be stripped clientside, so this setting
       should rarely be used. It is mainly left in for compatibility
       with broken clients that don't follow the specification.

no:   The equivalent of allow_markup [yes/no](any value), plain_text
      yes.
      Makes the notification content be rendered as plain text
      regardless if it contains markup. Any Markup will be shown as
      regular text.

Markup inside 'format' will still be parsed regardless of what markup is
set to.

Closes #279
2017-02-04 22:10:51 +02:00
Johannes M. Griebler
ce8fe45cbf Add configuration option for icon scaling
The maximum size for icons can now be set with the max_icon_size option.
Setting its value to 0 will disable the scaling of icons.
2016-10-14 18:12:09 +02:00
Sascha Kruse
f8e1e330b2 Merge pull request #209 from Nauxuron/master
Notification height option
2014-12-17 14:56:43 +01:00
Wim de With
f4cdb2acfa Add notification_height option
Fix the line_height description
2014-12-13 17:02:31 +01: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
Amadeus Folego
d2245c70f6 Set wm class and name with -name 2014-04-30 19:36:59 -03:00
Sascha Kruse
1ccb6185ac allow rule matching against category
fix issue #135
2014-03-08 15:03:38 +01:00
Sascha Kruse
6957ac77a0 Merge branch 'feature-icon' of git://github.com/Gjum/dunst into pull_requests
Conflicts:
	dunstrc
	settings.c
2014-03-08 11:57:09 +01:00
Yuri D'Elia
431c65fc76 Add 'msg_urgency' as a new filter to match on the urgency.
This patch adds a new filter 'msg_urgency' which _matches_ on the urgency on
the notification.

This allows to configure different notification parameters/scripts to different
urgency levels.
2014-03-06 17:22:08 +01:00
Gjum
d0662e78ec Introduce default icon setting 2014-02-28 22:18:57 +01:00
Gjum
a02ab4cf70 Change how icons are loaded
- use several icon_folders instead of a single icon_path
- check all paths for the icon
2014-02-27 15:15:11 +01:00
Gjum
687a69a99f Change default icon size to 16x16 (was 32x32)
might fit better to dunst's minimalistic style
2014-02-26 23:27:07 +01:00
Gjum
d9e68803dc Fix stuff regarding icons
- fix icon_path string calculations
- add default settings to config.def.h
2014-02-26 19:05:32 +01:00
Andrei Gorgan
619076660b Add "show_indicators" option
Add an option for disabling marking messages containing URLs or actions.
This means that messages will not be displayed with "(U)" or "(A)"
before them, but you can still use the context menu on them.
2013-07-21 15:31:41 +03:00
Giuliano Schneider
a25954f8a6 added shrink option 2013-04-30 14:54:55 +02:00
Sascha Kruse
0d8be7dccf markup 2013-02-22 18:36:25 +00:00
Sascha Kruse
e82da9d5e7 indent -linx --no-tabs 2013-02-21 23:23:54 +00:00
Sascha Kruse
a51f564037 new option: igonre_newline
see github issue 83
2013-01-02 12:21:53 +01:00
Sascha Kruse
f2075a3409 more options for separator color 2012-12-22 17:12:27 +01:00
Sascha Kruse
f054dab8be horizontal padding 2012-12-21 15:46:25 +01:00
Sascha Kruse
67b54e2ace framing 2012-12-21 15:35:51 +01:00
Sascha Kruse
4b7c856c0a add padding 2012-12-21 13:46:20 +01:00
Sascha Kruse
131016878b run script via rule 2012-12-21 12:27:24 +01:00
Sascha Kruse
42e49a7b34 context menu for urls 2012-12-19 15:56:15 +01:00
Sascha Kruse
3918fd32a8 print notification on startup 2012-12-13 22:50:13 +01:00
Nuno Cardoso
434a575bfb Implemented bouncing text 2012-09-13 10:32:10 +01:00
Nuno Cardoso
15d36de115 Fixed issue with transparency config defaults 2012-09-11 19:59:48 +01:00
Nuno Cardoso
36efd8846c Implemented Transparency 2012-09-11 12:40:59 +01:00
Sascha Kruse
c3767d1a7b change separator to be a solid line at the bottom 2012-09-09 10:19:58 +02:00
Sascha Kruse
28e6f27060 Revert "configurable total height of separator"
This reverts commit 9534cd4d46a9089f26e5d5304899541b728e5e13.

this breaks on splitted notifications
2012-09-09 09:24:54 +02:00
Sascha Kruse
9534cd4d46 configurable total height of separator 2012-09-09 08:55:41 +02:00
Sascha Kruse
43a37ead0f reword comment in config.def.h 2012-09-07 17:08:33 +02:00
Sascha Kruse
be626b68a5 draw separator line between notifications 2012-08-30 01:47:24 +02:00
Sascha Kruse
788ed745ac new option for line height
This implements github issue #51
2012-08-16 23:19:43 +02:00
Sascha Kruse
9eda03513e word_wrap 2012-08-14 17:14:07 +02:00
Sascha Kruse
03190b58bf no default keybindings 2012-08-13 00:51:58 +02:00
Sascha Kruse
7fe7938460 moved monitor and follow_mode to config.h 2012-07-25 10:30:11 +02:00
Sascha Kruse
59886c1447 added rules to config.def.h 2012-07-25 10:07:54 +02:00
Sascha Kruse
311e2ff437 reintroduced config.h 2012-07-25 10:07:54 +02:00
Sascha Kruse
5fa67d5f89 removed config.h and config.def.h
The need for them is replaced by dunstrc
2012-03-19 02:26:19 +01:00
Sascha Kruse
c18be50fd3 config parsing 2012-03-19 00:10:23 +01:00
Sascha Kruse
9ac34f6010 make rules linked list instead of array 2012-03-18 07:04:12 +01:00
Sascha Kruse
d5e89267df no 'format' in default rule 2012-03-09 22:27:56 +01:00
Sascha Kruse
167d7c8671 show count of hidden msgs 2011-11-18 08:32:24 +01:00
Sascha Kruse
5915cbdd9f new option to sort messages by order 2011-11-18 07:23:33 +01:00