78 Commits

Author SHA1 Message Date
Nikos Tsipinakis
5e2c781cba Move frame settings to the global section
There is no reason for the frame settings to have their own section
since it's not an area that will be expanded upon. Move them to the
global section to be consistent.
2017-07-01 11:56:15 +03:00
Nikos Tsipinakis
43b4d4bb41 Add per_monitor_dpi experimental setting
Calculating the screen dpi on a per-monitor basis can cause
inconsistencies if multiple monitors with slightly different dpis are
used and in some cases it might not be the expected behaviour.

As such, the per-monitor dpi calculation was changed from a default
fallback to an opt in experimental feature and the default value of 96
will be used for the dpi if Xft.dpi is not set.

In the future, depending on how we decide to continue, we can either
move this setting in the global configuration section and fall back to
the X11 display dpi as the default or simply always use the per-monitor
dpi calculation. But to preserve backwards compatibility, this decision
can wait until the next major release.
2017-04-02 18:27:12 +03:00
Nikos Tsipinakis
2126b212f6 Add example for the history_ignore rule to dunstrc
Add example to demonstrate the usage of history_ignore to the default
dunstrc file.

Relevant issue: #302
2017-02-25 15:38:54 +02:00
Nikos Tsipinakis
de20697a69 Rename hide_duplicates_count -> hide_duplicate_count 2017-02-12 21:17:38 +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
Foster McLane
d6e2e70cd8 fix 'always_run_script' typo 2017-01-29 12:30:24 -05:00
Nikos Tsipinakis
f54d698cba Bring default config up to date
Some of the settings weren't included in the default config before.
2016-12-11 14:14:18 +02:00
Jack Henschel
9db667be45 Add note about ctrl+grave to default config
Fixes #268
2016-11-10 01:20:20 -03:00
Jakob Nixdorf
8ee86dc477 add initial support for per-urgency frame-colors 2016-11-06 16:52:13 -03: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
Josh Brown
76419dcc76 Fix spelling in dunstrc 2014-08-03 15:42:12 +00:00
Josh Brown
30f2af439d Remove trailing whitespace in .dunstrc 2014-08-03 15:32:08 +00:00
Sascha Kruse
3c841c418a add new history_length option to example dunstrc 2014-06-16 21:47:22 +02:00
René 'Necoro' Neumann
010bdf01ae Add Vim modeline for dunstrc.
With this modeline, the dunstrc gets syntax highlighting in vim by
default.
2014-06-11 15:52:33 +02: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
5a5dab2ff3 Add script option to override shown icon 2014-03-01 14:53:30 +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
01327a6bc4 Add option to align icons left or right 2014-02-26 22:43:53 +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
Gjum
c2801181f8 Add icon support
- icons are displayed at the top left corner
- disabed by default, fully backwards-compatible
- no additional dependencies, only cairo used
- TODO: only supports png (but all default images are png)
- TODO: message formatting is sometimes buggy
2014-02-25 23:35:08 +01:00
Sascha Kruse
2638178e5a Merge remote-tracking branch 'galex-713/patch-1' into merge
Conflicts:
	dunstrc
2014-01-22 22:20:31 +01:00
Sascha Kruse
bf6c1a6406 make notification stacking optional
see #137
2014-01-22 10:44:30 +01:00
Garreau Alexandre
438e215524 Little adjustments
Corrected text filling to 72 columns, indentations between lines, some miswriting (“<s/>”), points, caps, <pro://url/file.html> syntax, etc.
2014-01-03 01:11:12 +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
718c07a9eb removed unopened closing bracket 2013-05-01 12:08:13 +02:00
Giuliano Schneider
e92e36a2d9 added documentation 2013-04-30 15:16:35 +02:00
Giuliano Schneider
a25954f8a6 added shrink option 2013-04-30 14:54:55 +02:00
Sascha Kruse
81fa1dfc02 update dunstrc 2013-02-23 00:35:01 +00:00
Sascha Kruse
0d8be7dccf markup 2013-02-22 18:36:25 +00:00
Sascha Kruse
d092d17a54 update default dunstrc to more pleasing defaults
This introduces i3 like colors
2013-01-08 02:40:38 +01: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
5c96d1f63e updated dunstrc comment
height in geometry is measured in notifications, not lines
2012-12-22 08:01:22 +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
4820f0da13 example script 2012-12-21 12:36:45 +01:00
Sascha Kruse
131016878b run script via rule 2012-12-21 12:27:24 +01:00
Sascha Kruse
02bd587935 allow parameters to dmenu and browser calls 2012-12-19 16:38:14 +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
Sascha Kruse
78d7daed12 negative width within geometry
See github issue #72
2012-10-20 14:44:50 +02:00
progandy
bcd3a79b1c document new placeholder 2012-10-08 12:38:53 +02:00
Sascha Kruse
a283c18ddc Update comments in dunstrc 2012-09-27 11:29:47 +02:00
Nuno Cardoso
434a575bfb Implemented bouncing text 2012-09-13 10:32:10 +01:00