82 Commits

Author SHA1 Message Date
Sascha Kruse
48d95288a9 change tabs to spaces 2012-06-20 17:41:05 +02:00
Sascha Kruse
a2dceb2feb remove dublicate initialisation of rule 2012-06-20 16:51:27 +02:00
Gergely Nagy
bdab09fec2 Migrate dunst from iniparser to inih.
Instead of using iniparser, which is rarely packaged, and is an
external dependency, use an embedded copy of inih instead, which is
only a hundred or so lines, and can do pretty much the same as
iniparser.

The benefit is one less external dependency, and it makes it easier
for distributions to package dunst.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
2012-06-20 16:51:27 +02:00
Sascha Kruse
35cb023915 trim message
assuming a format like "%s %b" and the body is empty, the notification
ends with a space, leading to not centered text in the window.
2012-06-18 16:10:20 +02:00
Sascha Kruse
ccd5cd063b history 2012-06-15 20:54:21 +02:00
Sascha Kruse
dcb451cadc Only parse cmdline once
This also fixes a bug where the geometry is parsed incorrectly.
2012-06-14 15:45:09 +02:00
Sascha Kruse
0daa92cc57 don't segfault if XDG_CONFIG_HOME is not set 2012-06-14 15:17:15 +02:00
Sascha Kruse
c737a69a42 fix segfault on custom color notifications 2012-06-14 13:16:43 +02:00
Sascha Kruse
7d69b6f23b fix segfault on critical notification 2012-06-12 19:52:07 +02:00
Sascha Kruse
9b4d9ec205 Merge branch 'xft' into next
Conflicts:
	config.mk
2012-06-12 13:59:51 +02:00
Sascha Kruse
acf56a41e9 xft 2012-06-12 13:51:41 +02:00
Sascha Kruse
abba5acdd2 cleanup of output 2012-03-19 13:02:04 +01:00
Sascha Kruse
baa00150d1 add idle_threshold option 2012-03-19 04:40:19 +01:00
Sascha Kruse
f662e65011 Merge branch 'idle' into next
Conflicts:
	config.def.h
	config.mk
	dunst.c
2012-03-19 04:27:17 +01: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
491293360e move cmdline parsing to own function 2012-03-18 07:13:04 +01:00
Sascha Kruse
9ac34f6010 make rules linked list instead of array 2012-03-18 07:04:12 +01:00
Sascha Kruse
7801e92203 don't timeout when idle 2012-03-06 21:39:19 +01:00
Sascha Kruse
5554131bfd removed unnecessary debug printf 2012-02-02 02:07:51 +01:00
Sascha Kruse
820c4ee013 use last urgency colors for "x more" message 2012-02-02 02:04:01 +01:00
Sascha Kruse
b1be9ee92c delete clicked msg 2011-11-27 03:39:37 +01:00
Sascha Kruse
22759b87c5 ignore middle-click 2011-11-18 16:33:31 +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
Sascha Kruse
98d7d17ad5 replace <br>,<br/> and <br /> 2011-11-17 20:40:05 +01:00
Sascha Kruse
76f4922ffc fixed memory-leak 2011-11-15 20:12:27 +01:00
Sascha Kruse
822e5d2f8c More granularity in verbosity 2011-11-15 11:14:27 +01:00
Sascha Kruse
91be3e1e4a removed unused function definition 2011-11-15 08:51:45 +01:00
Sascha Kruse
6d36786fc0 added format to rules 2011-11-15 01:21:08 +01:00
Sascha Kruse
4e7a12053d added keybindings to config.def.h 2011-11-14 23:59:32 +01:00
Sascha Kruse
45ec236958 moved default values to config.h and added Rules
I know, this should be splitted into more than one commit. Shame on me.
2011-11-14 23:22:50 +01:00
Sascha Kruse
ea702f0dad refactor handling of the msgqueue
This should make things cleaner and easier to add filters in the future"
2011-11-14 20:48:57 +01:00
Sascha Kruse
a61e8ebada reintroduced -v
This one was forgotten in the rewrite of the option parsing
2011-11-14 20:26:00 +01:00
Sascha Kruse
57ba1d5ffe use getopt for option parsing 2011-11-14 17:12:13 +01:00
Sascha Kruse
9b89836e73 some cleanup 2011-11-14 16:04:06 +01:00
Sascha Kruse
f237d8df84 changed behaviour of mouseclicks
Now a rightclick on the message windows deletes ALL messages.
2011-11-05 10:45:59 +01:00
Sascha Kruse
349493c196 fixed tab<->spaces 2011-10-25 22:22:10 +02:00
Sascha Kruse
fa302a31a9 fixed typo in usage 2011-10-03 21:54:18 +02:00
Sascha Kruse
b878f3d851 removed unused _do_replace(...) function 2011-10-03 21:14:05 +02:00
Sascha Kruse
f192ee6bbf removed unused pop(...) function 2011-10-03 21:10:13 +02:00
Sascha Kruse
96a632cfcc cleanup of fix_markup(...) 2011-10-03 20:56:42 +02:00
Sascha Kruse
f4508c1dbe verbose-mode and output cleanup 2011-10-03 12:35:19 +02:00
Sascha Kruse
16320b0f8d always handle XEvents
This prevents queueing up of key-presses when no window is shown, which
would close the message immediatly
2011-09-28 17:27:00 +02:00
Sascha Kruse
6240ebb237 replace newlines with space 2011-09-25 07:15:52 +02:00
Sascha Kruse
1f67c51cf2 removed -msg option 2011-09-25 07:14:24 +02:00
Sascha Kruse
916a2c0c60 read color hints
this commit enables dunst to read color informations for the
notifications from the message.
2011-09-24 01:29:22 +02:00
Sascha Kruse
5a5211006e fixed segfault
thanks to chneukirchen
2011-09-24 00:45:14 +02:00
Sascha Kruse
f7109c9b19 fixed memoryleak
thanks to chneukirchen
2011-09-24 00:31:32 +02:00
Sascha Kruse
f84ace2b05 fixed unescaping of &amp; &lt; &gt; 2011-09-18 16:16:58 +02:00