-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Add ability to put certain parts of notification on a specific side of that notification. #744
Comments
It seems like a good idea on the surface, but sadly I don't think this will ever be implemented without rewriting the drawing code entirely as that is just now how dunst is designed. The entire notification is a big text area whose contents is dictated by From this it looks like the padding workaround works, are there any edge cases that still break and something like this would be needed? |
dunst understands the "value" hint and uses it to display a progress value from 0-100% in textual form. The rendering code could be changed to show that as a good looking progress bar. Instead of using dunst, maybe a standalone overlay bar may interest you: |
Using the progress hint is a much better idea (and IIRC there have been some previous attempts to add a progress bar this way, that went unfinished). |
The overlay bar is a neat idea, though I wanted to use dunst, as I don't want separate program for just showing volume or brightness, if dunst can work for my notifications and volume and brightness then I'm fine with it. And what's the the progress hint, how do I use it? |
The hint works this way:
There is no progressbar yet, only these dunst notification formats:
|
Dunst now draws a progress bar when passed a progress value, see #775. I'm not sure how useful the double alignment feature is, but an easy way to implement it, is to allow multiple strings to be passed to the notification, each with seperate alignment. These could be rendered independently with their own alignment. This doesn't need a whole rewrite of the drawing code, but it does require tweaking of the interface. |
Given that the original purpose of this PR was progress bar, I'd argue this can be closed. What do you think @apoorv569 ? PS: I haven't forgotten about your PR @fwsmit, it's pretty big so I'll need some time to review it :) |
Yeah I know, no problem. Take your time |
Interesting. I tried running the example given in #775 |
Make sure you are using the latest master. If that's correct try with the default dunstrc, perhaps something in your config is messing it up. |
|
This feature is not in 1.5, it was only recently merged. You'll have to built from source to try it. |
Yes I built it from source today, it works nicely. Any way to change color of that blue bar? Any idea how long before this merge hits the official repo of Arch? |
You can change it by changing the hightlight color in the urgency low, normal and high sections. We should probably add an example to the dunstrc in this repo. |
Yes an example would be nice, the screenshots in #775, are really nice, I would really like to make mine look like that. :D |
Great, I'll close this then
After #781 is merged I'll wait a few weeks for any issues to be reported by git users then I'll make a new release unless something else comes up. |
The only issue, well not really an issue but, sometimes when raising volume or brightness, a new notification pops up instead of the bar raising in the already popped notification. But this is a minor thing. |
That's probably an issue with the script sending the notification. You are using a stack tag, aren't you? :) |
Yes in my
|
That's not what I meant, see an example here (the Edit: Documentation is indeed light on this feature, another point for improvement. |
No I don't have anything like that in the script. I simply have |
The stack feature works only if the notifications have exactly the same content. If you have two notifications with a different volume, they will not stack. If you want to stack different notifications you can use |
Does this has to do anything with the company |
It was initially used by |
Ah! Nice. I'll use this one |
@tsipinakis Hi, its been a couple of months, I don't see a update with the patch that got added for #775. Is it not out yet? Also I wanted to ask sometimes when a notification comes, and is very big, like a message on telegram or something, it shows a huge notification covering up almost my entire right side of the screen, is there a way to limit the number of lines to show? |
What distro are you on? You should be on 1.6.1 now.
Not yet, see #625 |
I'm on Arch Linux,
I'm surprised Arch does not include the latest update yet.
Oh that is cool. |
Yeah the arch package is already marked as out-of-date for a while, still not updated. |
I installed |
I am trying to use
dunst
as a volume and brightness notification, It would nice to see a feature that adds the ability to have certain parts of the notification output to a specified side of that notification, for example, I'm using a script for displaying a notification for when I try to adjust my volume or brightness,It would be nice if I could do something like this for example
Where
-sl
is show on left side and-sr
is show on right side, andx
andy
are of course for positioning, can also add-sm
for show in the middle, or something like this.For now I'm using
this for defining spaces so my volume% shows on the right side, something like this
Now I just need to replace
+
with empty blank/space character, and I have it how I want it.Label - Feature.
The text was updated successfully, but these errors were encountered: