You are not logged in.
Hi,
I just pushed a few changes. First of all a fix of a small annoyance I had:
If you had a message format like "%s %b" (summary and body) and the body is empty, you end up with a traling whitespace, which looks odd, because the window would get to big on the right side. Now, before displaying a message all spaces are removed from the beginning and end of the message.
The second one should be interesting for the debian-based distro users:
Thanks to algernon the dependency on iniparser is removed.
Offline
Hi,
I don't know much about notification systems and so on, so I've got a question: Why are notifications from Dropbox not shown in dunst? They are shown when using notify-osd for example...
It's a wonderful program:)
Regards
Offline
Hi,
Why are notifications from Dropbox not shown in dunst? They are shown when using notify-osd for example...
It's most likely a bug in dunst. Which version of dropbox do you mean? this one? If not, please post the link to the package, so I can have a look.
Offline
I think I've found few bugs in light branch:
1. indicate_hidden doesn't work. No matter how many notifications there are, no number gets shown.
2. If I send, for example, 4 different notifications via notify-send, I need to press key bind 4 times to close them, but each time only the last notification is visible. eg.
notify-send one
notify-send two
notify-send three
notify-send four
In this case, pressing ctrl+space will not show three, two or one, but only four.
Offline
Hello knopwob,
Thanks for this beautiful app. I just noticed that characters like "é, è , ê, etc." were not displayed well. It looks like an utf-8 issue or something like that ?
Offline
Hello knopwob,
Thanks for this beautiful app. I just noticed that characters like "é, è , ê, etc." were not displayed well. It looks like an utf-8 issue or something like that ?
They work fine here. Does the font support those, or maybe there's something wrong with your locale?
Offline
My font is gohufont : font = -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso8859-1 which seems to work well elsewhere ?
Edit: maybe I should just put Gohufont in dunstrc instead of -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso8859-1?
Last edited by Sirsurthur (2012-06-22 20:45:48)
Offline
Offline
I just want to say thank you for this great utility! It works marvelously and fits right in with dzen2, dmenu, and friends.
Offline
@Šaran, can you please post your config.h?
Sure, here it is.
#ifndef CONFIG_H
#define CONFIG_H
#include "dunst.h"
/* appearance */
const char *font = "-Misc-Stlarch-Medium-R-Normal--11-100-75-75-C-80-ISO10646-1" "," "-*-ohsnap-medium-*-*-*-14-*-*-*-*-*-*-*";
/*
* Background and forground colors for messages with
* low normal and critical urgency.
*/
const char *normbgcolor = "#1C1B1A";
const char *normfgcolor = "#DDDDDD";
const char *critbgcolor = "#1C1B1A";
const char *critfgcolor = "#000000";
const char *lowbgcolor = "#1C1B1A";
const char *lowfgcolor = "#000000";
const char *format = "%s %b"; /* default format */
int timeouts[] = { 10, 10, 0 }; /* low, normal, critical */
const char *geom = "0x15-290-1065"; /* geometry */
int sort = True; /* sort messages by urgency */
int indicate_hidden = True; /* show count of hidden messages */
/* If this is > 0, messages won't be closed, when user is idle for
* longer than idle_threshold seconds */
const int idle_threshold = 120;
/* set to NULL for no keybinging */
char *key_string = "space";
/* key to redisplay last message(s) */
char *history_key_string = "grave";
KeySym mask = ControlMask;
/* 0 -> print nothing
* 1 -> print messages to stdout
* 2 -> print everything to stdout (Useful for finding rules
* 3 -> print everything above + debug info
*/
int verbosity = 0;
/* You can use shell-like wildcards to match <appname> <summary> <body> and <icon>. */
const rule_t rules[] = {
/* appname, summary, body, icon, timeout, urgency, fg, bg, format */
{ NULL, NULL, NULL, NULL, -1, -1, NULL, NULL, NULL },
/* { "notify-send", NULL, NULL, NULL, -1, -1, NULL, NULL, "%s %b" }, */
/* { "Pidgin", NULL, NULL, NULL, -1, -1, NULL, NULL, "%s %b" }, */
/* { "Pidgin", "*signed on*", NULL, NULL, -1, LOW, NULL, NULL, "%s %b" }, */
/* { "Pidgin", "*signed off*", NULL, NULL, -1, LOW, NULL, NULL, "%s %b" }, */
/* { "Pidgin", "*says*", NULL, NULL, -1, CRIT, NULL, NULL, "%s %b" }, */
/* { "Pidgin", "twitter.com*", NULL, NULL, -1, NORM, NULL, NULL, "%s %b" }, */
};
#endif
Offline
It's most likely a bug in dunst. Which version of dropbox do you mean? this one? If not, please post the link to the package, so I can have a look.
Ahm, yes. This package. But I never had a version of Dropbox whose notifications where displayed by dunst...
Offline
If anyone has any neat uses for this I'd be interested to hear them. I'm currently using it with procmail and remind, but I'm sure there are other things (eg I'm thinking of wrapping my mplayer music playing in a script that uses it). Assuming, that is, that knopwob doesn't mind the clutter in the thread (could start a new one)?
I forgot one that I have in my zshrc:
# nwf stands for "notify when finished"
function nwf {
"$@"
if [ $? -gt 0 ]; then
notify-send -u critical "$1 FAILED"
else
notify-send -u critical "$1 finished"
fi
}
I use this for long running processes that I wan't to get notified when they've finished. For example
nwf makepkg
Offline
Offline
hoeffl wrote:Why are notifications from Dropbox not shown in dunst?
I just pushed a fix for that. Dropbox was relying on a Dbus method that dunst didn't implement. Please update and let me know if it now works as expected.
I updated the same file in my Dunst repo (Remember? I asked to host a specific version because it was perfect for me at that stage) but I find it not working. Could just be because I have older versions of other files, though.
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
skanky wrote:If anyone has any neat uses for this I'd be interested to hear them. I'm currently using it with procmail and remind, but I'm sure there are other things (eg I'm thinking of wrapping my mplayer music playing in a script that uses it). Assuming, that is, that knopwob doesn't mind the clutter in the thread (could start a new one)?
I forgot one that I have in my zshrc:
# nwf stands for "notify when finished" function nwf { "$@" if [ $? -gt 0 ]; then notify-send -u critical "$1 FAILED" else notify-send -u critical "$1 finished" fi }
I use this for long running processes that I wan't to get notified when they've finished. For example
nwf makepkg
NIcked, thanks.
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline
knopwob wrote:hoeffl wrote:Why are notifications from Dropbox not shown in dunst?
I just pushed a fix for that. Dropbox was relying on a Dbus method that dunst didn't implement. Please update and let me know if it now works as expected.
I updated the same file in my Dunst repo (Remember? I asked to host a specific version because it was perfect for me at that stage) but I find it not working. Could just be because I have older versions of other files, though.
I just tested your repo and it seems to work here. I put stuff into the dropbox folder, then go to the dropbox homepage, delelete the files with the webinterface and then get a notification via dunst, that the files have been deleted remotly.
Offline
skanky wrote:If anyone has any neat uses for this I'd be interested to hear them. I'm currently using it with procmail and remind, but I'm sure there are other things (eg I'm thinking of wrapping my mplayer music playing in a script that uses it). Assuming, that is, that knopwob doesn't mind the clutter in the thread (could start a new one)?
I forgot one that I have in my zshrc:
# nwf stands for "notify when finished" function nwf { "$@" if [ $? -gt 0 ]; then notify-send -u critical "$1 FAILED" else notify-send -u critical "$1 finished" fi }
I use this for long running processes that I wan't to get notified when they've finished. For example
nwf makepkg
I have something like this run automatically, and I split up the two. So I notify of all failures, and I notify of completions of tasks that last longer than, I forget how long, maybe a minute or something. Mine is only for interactive use though.
I don't remember if I copied it or wrote it, but it's in https://github.com/scottjad/dotfiles/bl … zshrc#L310 and https://github.com/scottjad/dotfiles/bl … zshrc#L299
Offline
Unia wrote:knopwob wrote:I just pushed a fix for that. Dropbox was relying on a Dbus method that dunst didn't implement. Please update and let me know if it now works as expected.
I updated the same file in my Dunst repo (Remember? I asked to host a specific version because it was perfect for me at that stage) but I find it not working. Could just be because I have older versions of other files, though.
I just tested your repo and it seems to work here. I put stuff into the dropbox folder, then go to the dropbox homepage, delelete the files with the webinterface and then get a notification via dunst, that the files have been deleted remotly.
Yep, it's working!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I think I've found few bugs in light branch:
1. indicate_hidden doesn't work. No matter how many notifications there are, no number gets shown.
2. If I send, for example, 4 different notifications via notify-send, I need to press key bind 4 times to close them, but each time only the last notification is visible. eg.notify-send one notify-send two notify-send three notify-send four
In this case, pressing ctrl+space will not show three, two or one, but only four.
I just realised this was caused by wrong geometry, so I'd like to make a feature request.
It would be great if dunst had one line geometry - "0x1-290+0" should produce this.
Thanks.
Offline
hoeffl wrote:Why are notifications from Dropbox not shown in dunst?
I just pushed a fix for that. Dropbox was relying on a Dbus method that dunst didn't implement. Please update and let me know if it now works as expected.
Works like a charm Very good! I like it!
By the way, is it possible, to display the text centered while dunst uses the whole screen horizontally (geometry = "x3+0+0")? Would be great!
Offline
Hey ho, it's new feature time again.
There's a new option "alignment = {left, center, right}" to define (you guessed it) the alignment of the message text.
New option: "show_age_threshold = 60" to define after how many seconds the age of the notification should be displayed next to it (useful for sticky notifications, the history and as a improvised stop watch e.g: "notify-send -t 0 pizza" will show "pizza (13m 37s old) after show_age_threshold seconds)
new option: "sticky_history = yes" to define wether a notification popped up from history should be sticky or timeout normally
dunst now merges duplicate notifications and adds an indicator of how many duplicates there are: "(4) hey there are four of me"
some bugfixes
Also this:
so I'd like to make a feature request.
It would be great if dunst had one line geometry - "0x1-290+0" should produce this.
Thanks.
By the way, is it possible, to display the text centered while dunst uses the whole screen horizontally (geometry = "x3+0+0")? Would be great!
[global]
....
alignment = center
in your dunstrc should do the trick.
Those new features are currently not in the light branch, since both branches have diverged quite a lot and it isn't as straight forward as I have thought to keep the light branch up to date with the master branch. I think I have to come up with a better way to make those "i don't want no xft and I want my config.h" guys of you happy
As always, if you encounter any issues, please let me know either here or preferably on the issue tracker.
On a side note: Since dunst is going to land in the debian repositories soon, I do 'normal' releases now. So if any one is interested in a slightly more stable dunst package, let me know and I'll create one.
Dunst-git should always be in a working state, but since you're the first ones to use new code, you're also the first to encounter any issues, but that shouldn't be any news to arch users.
Last edited by knopwob (2012-07-01 07:08:20)
Offline
Thanks for the great work!
Some notes:
The age does not show if the message has been truncated due to length, which
reminds me, any hope for multiline support instead of truncating messages for
fixed width geometries?
The count is off by one (IMO). It shows "(1)" when you get 1 extra duplicate,
but I think it should show "(2)" as in "You got two of these"
Also there's a typo in dunstrc comments: *sow*_age_threshold
Offline
Thanks for the great work!
Some notes:
The age does not show if the message has been truncated due to length, which
reminds me, any hope for multiline support instead of truncating messages for
fixed width geometries?
I don't see an obvious way to fit this into how things are currently implemented without becoming a complete hacky mess. So this depends on wether I can come up with a clean way to implement this and for that I can't give a definitive yes or no. Sorry for the lack of an answer.
The count is off by one (IMO). It shows "(1)" when you get 1 extra duplicate,
but I think it should show "(2)" as in "You got two of these"
yeah, my example in the post above was is one off (or the implementation, depending of your side of view). The number is ment to show how many duplicates are hidden.
Also there's a typo in dunstrc comments: *sow*_age_threshold
fixed thanks.
Offline
mnzaki wrote:Thanks for the great work!
Some notes:
The age does not show if the message has been truncated due to length, which
reminds me, any hope for multiline support instead of truncating messages for
fixed width geometries?I don't see an obvious way to fit this into how things are currently implemented without becoming a complete hacky mess. So this depends on wether I can come up with a clean way to implement this and for that I can't give a definitive yes or no. Sorry for the lack of an answer.
Could you give the option to truncate by cutting text out of the middle of the message?
Eg:- "Now Playi...my grandmother killed a goat.ogg"
"...one cannot be angry when one looks at a penguin." - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle
Offline