You are not logged in.
thx knopwob
thats exactly what i wanted. im sorry i didnt notice that the hight is interpreted as the number of notifications, i thought it was the hight for each single notification. a few more small question if you dont mind:
1) has the line wrapping beem implemented yet
2)does dunst support icons (there is a "%I iconname (without its path)" in the config but im unclear regarding to what that means. if it does support icons are these simple xpm/xbm or also png's etc?
thx alot again, i trully appriciate your hard work!
best
Z
Offline
thx knopwob
thats exactly what i wanted. im sorry i didnt notice that the hight is interpreted as the number of notifications, i thought it was the hight for each single notification. a few more small question if you dont mind:
1) has the line wrapping beem implemented yet
Partially yes. You have to set a width (this one is measured in pixels) via the geometry option and you have to set
[global]
word_wrap = yes
in your dunstrc. The wrapping works, but there isn't a separator between notifications yet. So it might get confusing wether a line is a new notification or the continuation of the line before. Btw. I think I haven't mentioned this before: you can put '\n' into the format option to do a manual linebreak. I'm using this for example:
[global]
format = "%s\n%b
So I have the summary on one line and the body (if any) on the next line.
2)does dunst support icons (there is a "%I iconname (without its path)" in the config but im unclear regarding to what that means. if it does support icons are these simple xpm/xbm or also png's etc?
No it doesn't support icons. I just added the possibility to add the icon path/name to the format option, because I have the information anyway so it wasn't any extra work to add this. I haven't decided yet wether there will ever be icon support. It mainly depends on
how much work it would be
how good it can be integraded (in terms of code and visual appearance)
how many or what kind of dependencies it would add
my motivation (in other words how annoying you people get by constantly requesting it )
If someone is interested in writing a patch, just some notes to consider:
It has not to be perfect. I don't mind doing some fixups, multiple reviews etc. But it shouldn't be a complete mess either.
If you're unsure if I would accept a new dependency, ask me beforehand. You would feel bad because you did your work for nothing and I would feel bad because I had to discard your effort. (Definetly no gtk and no qt!)
If you have any questions feel free to ask me here, on the github issue tracker or in private via email. I'll try to respond as fast as possible (but it might take a day or two, depending on my real life)
The icons should be optional
I think I should put some of these points into a HACKING file *note to myself*
thx alot again, i trully appriciate your hard work!
I'm glad you like it
Offline
Hi,
I really would like to use this software, but I can't get it to work!
I always get this:
[punkeroso@vaio ~]$ dunst -config dunstrc
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 28 (X_GrabButton)
Serial number of failed request: 261
Current serial number in output stream: 262
I'm using compiz standalone and I've commented out all the keybindings in the default dunstrc.
How could I know what key is conflicting, if any?
Many thanks!
Offline
question: why is dunst automatically started, whenever i run a notfication with notify-send?
its definately nowhere in my autostart.
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
question: why is dunst automatically started, whenever i run a notfication with notify-send?
its definately nowhere in my autostart.
Because dunst provides a *.service file, that tells dbus that dunst provides the org.freedesktop.Notifications interface and therefore dbus starts dunst. It's the same way how notify-osd and would others get started by dbus when there's no notification-daemon running.
Offline
Hi,
I really would like to use this software, but I can't get it to work!
I always get this:[punkeroso@vaio ~]$ dunst -config dunstrc X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 28 (X_GrabButton) Serial number of failed request: 261 Current serial number in output stream: 262
I'm using compiz standalone and I've commented out all the keybindings in the default dunstrc.
How could I know what key is conflicting, if any?
Many thanks!
It looks like it's not a key but a mousebutton (otherwise it would say X_GrabKey instead of X_GrabButton), and dunst should handle a conflicting keybinding more gracefully by displaying an error message and continue running. But I've not thought about the fact, that a mousebutton could also conflict. I'll make dunst handle this error more gracefully as well.
Offline
punkeroso wrote:Hi,
I really would like to use this software, but I can't get it to work!
I always get this:[punkeroso@vaio ~]$ dunst -config dunstrc X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 28 (X_GrabButton) Serial number of failed request: 261 Current serial number in output stream: 262
I'm using compiz standalone and I've commented out all the keybindings in the default dunstrc.
How could I know what key is conflicting, if any?
Many thanks!It looks like it's not a key but a mousebutton (otherwise it would say X_GrabKey instead of X_GrabButton), and dunst should handle a conflicting keybinding more gracefully by displaying an error message and continue running. But I've not thought about the fact, that a mousebutton could also conflict. I'll make dunst handle this error more gracefully as well.
Okay, I've added an error handler to XGrabButton. So if I understand your situation correctly you should now be able to run dunst, but it will print an error message, that it is unable to grab the mousebuttons. But it should continue to run, even though the mouse buttons won't work.
Please update and let me know if the situation improved.
Offline
thx knopwob
this code in my rc
format = "%s\n%b
seems to just put a \n in the notification instead of actually breaking the line, im probably doing somethig wrong right?
best
Z
Offline
thx knopwob
this code in my rc
knopwob wrote:format = "%s\n%b
seems to just put a \n in the notification instead of actually breaking the line, im probably doing somethig wrong right?
best
Z
I'm guessing the missing quotation mark is just a copy&paste error. But even with that error it works here. Could you please post your complete dunstrc?
Offline
Offline
Aah, you have the width set to 0 in the geometry. Wich means that the window is as long as the longest notification and wordwrap is disabled. But this means also that the code that checks for "\n" is skipped, which is of course an error on my side. I'll should be able to push a fix soon.
Offline
great
thx for checking it out
best
Z
Last edited by zeltak (2012-08-22 20:20:20)
Offline
Thx knopwob
the new update does fix the /n issue it works well now but i seem to have a new issue (maybe its just me not getting it again )
if i leave the width at '0' then now the notifications are cut after a few character. if i change the width to '5' or '11' i get a long veritcal line:
http://www.enlightenment.org/ss/e-50354 … 870884.jpg
what am i doing wrong?
here is my current config
thx again
z.
Offline
Thx knopwob
the new update does fix the /n issue it works well now but i seem to have a new issue (maybe its just me not getting it again )
if i leave the width at '0' then now the notifications are cut after a few character. if i change the width to '5' or '11' i get a long veritcal line:
http://www.enlightenment.org/ss/e-50354 … 870884.jpg
what am i doing wrong?
here is my current config
thx again
z.
I think you forgot the link to your config
The width is measured in pixels, so what you are seeing is that it word_wraps on every letter. A width somewhere between 300 and 800 (depending on your screen resolution and and font size) would be more apropriate
At the moment I can't tell you what's going on when you set the width to 0 since I can't reproduce it here. Maybe I can tell you more when you post your config file.
I can reproduce it now. Seems I've introduced a new bug with the fix a few hours ago I'm looking into that
Last edited by knopwob (2012-08-22 21:51:25)
Offline
I can reproduce it now. Seems I've introduced a new bug with the fix a few hours ago I'm looking into that
Yes, it was again a bug. You seem to be got at triggering them
And just to let you know: It's pretty late here so I'll be going to bed soon. I hope that was the last bug you trigger for today
Offline
Okay, I've added an error handler to XGrabButton. So if I understand your situation correctly you should now be able to run dunst, but it will print an error message, that it is unable to grab the mousebuttons. But it should continue to run, even though the mouse buttons won't work.
Please update and let me know if the situation improved.
Many thanks, now it's working also if I get
BadAccess (attempt to access private resource denied)
Unable to grab mouse button(s)
at every sent message.
I'll try to go deep in this, but I think it's something related to compiz and some strange mouse binding.
Thanks again, now it's time to update all my scripts to make them using dunst!
Offline
You seem to be got at triggering them
lol....im glad i have some kind of talent in the floss community since i cant code ;-)
the wrap is fixed now
i think there is actually another bug but i wont bother you with it now. ill investiagte and report tomorrow
thx alot again
Z.
Last edited by zeltak (2012-08-23 00:33:16)
Offline
Offline
hehe ok you aksed for it...
so it seems like now when i set the windows to a user defined length (see config pastesd) i can get the items to stach one atop each other and i get a wierd black box beneath the actual notification. i have made a video (see below link) to present how it looks
let me know if more information is needed, thx alot again
Z
config:
video:
Offline
hehe ok you aksed for it...
so it seems like now when i set the windows to a user defined length (see config pastesd) i can get the items to stach one atop each other and i get a wierd black box beneath the actual notification. i have made a video (see below link) to present how it looks
let me know if more information is needed, thx alot again
Aah, you've triggered a known bug that I haven't tracked down yet. The problem is, that you set the height in the geometry too high. Unlike the width and the position, the height is the number of notifications that can get displayed at the same time. I know this can get confusing, but otherwise you would have to make sure that the height in pixels is a multiple of the font height. And this bug gets triggered, if the height( as notifications, not pixels) multiplied by the font height is greater than the display height.
So a workaround should be to set the height to something small, like 5. At least I hope that's the problem
Offline
thx knopwob!
so setting the height to 5 does indeed solve the black border issue, but now i cant get them to 'stack' up since the height is low (only 5) right? so i can only view 1 notification at a time. is there a workaround for this?
thx again
btw this may be a completely stupid idea but have you considered also audio notifications along side the visual? i understand if you find this unnecessary ,just a thought
best
Offline
thx knopwob!
so setting the height to 5 does indeed solve the black border issue, but now i cant get them to 'stack' up since the height is low (only 5) right? so i can only view 1 notification at a time. is there a workaround for this?
Normally it should display 5 notifications. Are you by any chance testing this with sending multiple times the same text? because dunst merges notifications that have the same text into one and displayes a counter next to the notification.
btw this may be a completely stupid idea but have you considered also audio notifications along side the visual? i understand if you find this unnecessary ,just a thought
best
There's a feature request to specify a program that can be run on certain notifications. If that gets implemented you could use that in combination with mplayer.
Another use case for this feature would be the possibility to put the notification trough a text-to-speech program.
But that's not yet implemented
Offline
hya
yep that was the issue (same notification), work brilliantly now!
thx for the info on the extra command thing, sounds cool.
thx again knopwob
z.
Offline
Is there a way to have, for instance, the summary style in bold?
We could have some tag to put in the format line, for example "<b>%s</b> %b"
Offline