79 Commits

Author SHA1 Message Date
Nikos Tsipinakis
8cadd8f905 Don't indent top-level comments 2016-11-17 22:11:08 +02:00
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
kongo2002
4f16213f9f add some graceful termination handling 2016-10-29 02:27:29 -03:00
Johannes M. Griebler
7ba4c1cc9b Fix two segfaults trying to display invalid icons 2016-10-16 22:29:10 +02:00
Johannes M. Griebler
57d3b293a2 Free original pixbuf after scaling 2016-10-16 12:18:45 +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
Johannes M. Griebler
342a23548f Scale images down if they exceed a certain size 2016-10-14 17:48:59 +02:00
Andrew Krasichkov
a6d9626c54 Try to support raw image data (see knopwob/dunst#151 ) 2016-03-09 18:37:04 +02:00
Andrew Krasichkov
b6f56be97b Added support for more image formats for icons ( see knopwob/dunst#150 ) 2015-11-15 21:16:37 +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
dfb4c933dc Fix issue with ceil and floor 2014-12-13 19:21:56 +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
Jan S
2674268aef fix NULL check 2014-11-04 16:31:06 +01:00
t5c
eedd220e37 check return values of malloc and handle error.
added some missing includes, too.

closes #199.
2014-11-04 15:14:22 +01:00
progandy
84fcd78d77 allow file:// protocol for icons 2014-07-07 17:10:23 +02:00
Sascha Kruse
1221ac8c92 Use sanitized variable instead of settings value 2014-06-16 20:42:04 +02:00
Amadeus Folego
d2245c70f6 Set wm class and name with -name 2014-04-30 19:36:59 -03:00
Sascha Kruse
48de907812 error handling for follow mode
see issue #141
2014-03-10 22:57:16 +01:00
Sascha Kruse
8bb8f6269f fix compiler warnings 2014-03-08 12:09:18 +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
Sascha Kruse
ff4d56e826 Merge branch 'fix_layout_alignment' of git://github.com/wavexx/dunst into pull_requests 2014-03-08 11:36:11 +01:00
Yuri D'Elia
0466d41c50 Set _NET_WM_STATE_ABOVE and fix window type.
- Fix indentation.
- Fix wrong paramenters in call to XChangeProperty
- Do not try to raise the window, set _NET_WM_STATE_ABOVE instead
2014-03-06 16:47:06 +01:00
Yuri D'Elia
38702761a3 Fix layout alignment with dynamic width.
Update pango layout's width if width has changed and alignment != left.
2014-03-06 12:56:57 +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
c6ef8ecaed Fix error on non-existent icon names 2014-02-27 00:36:59 +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
progandy
80af8a1030 fix dynamic width calculation 2013-12-06 07:01:51 +01:00
Sascha Kruse
41e5976e6d set _NET_WM_WINDOW_TYPE (thanks lexming)
fix #113
2013-07-16 13:30:46 +02:00
Sascha Kruse
fb8eafe3fa show pango markup errors only once
see also #111
2013-06-29 00:50:57 +02:00
Sascha Kruse
a098b9476f set width of layouts correctly on dynamic width
fix #110
2013-06-29 00:32:54 +02:00
René 'Necoro' Neumann
be7d2b3511 Correctly handle Num_Lock.
Find out which modifier key is used by Num_Lock (`x_numlock_mod()`) and
register grabs for both variants: modifier present/not present.
2013-06-13 15:16:03 +02:00
Giuliano Schneider
24d9179e4d xctx.geometry.y -> xctx.geometry.x 2013-05-01 12:00:35 +02:00
Giuliano Schneider
dd047ccd20 implemented shrink option 2013-04-30 14:55:50 +02:00
Giuliano Schneider
2d59a77e0c wrap the text if it's wider than the screen width (Fixes #53) 2013-04-23 20:58:19 +02:00
Sascha Kruse
99feeea84b fix segfault 2013-03-12 02:17:43 +01:00
Sascha Kruse
cdb39c30b4 x.c: free_colored_layout stuff leak 2013-03-08 20:14:13 +01:00
Sascha Kruse
75ef76946b x.c define functions as static where possible 2013-03-08 17:59:23 +01:00
Sascha Kruse
916b8816cb refactor calculate_foreground_color()
split repeated code into separate function.
2013-03-08 17:50:46 +01:00
Sascha Kruse
2ee38ca961 only FocusChangeMask|PropertyChangeMask if needed
We don't need to listen to the corresponding events when we don't need
to follow the mouse/keyboard focus.
2013-03-08 17:19:56 +01:00
Sascha Kruse
15cd7586a2 move renderling of layouts into extra function 2013-03-08 03:25:13 +01:00
Sascha Kruse
411434a18f refactor calculation of dimentions 2013-03-08 02:47:03 +01:00
Sascha Kruse
5099b57ee5 use double buffering
render to cairo_image_surface and drop that onto the xlib_surface
to get rid of flickering on redraws.
2013-03-08 02:30:23 +01:00
Sascha Kruse
c2a5b526e2 fix expanding window across the screen
test case included
2013-03-02 17:22:12 +01:00
Sascha Kruse
d314e01b34 fix background rendering with padding 2013-02-28 20:09:35 +01:00
Sascha Kruse
0c3c7c8d16 get rid off some compiler warnings 2013-02-25 22:04:34 +01:00