ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.15k stars 59 forks source link

[Bug] Weird behaviour when using notify-send.sh #373

Open arnevm123 opened 5 months ago

arnevm123 commented 5 months ago

Please read through the README and the Man pages before submitting Please also make sure that there isn't any prior issue describing this bug

Describe the bug When using https://github.com/vlevit/notify-send.sh I get a weird issue. I have a script to give me a notification of my volume whenever I press my volume up/down.

I use notify-send-sh for this. The issue is that if I don't use the -f flag (force expire) I get a lingering notification in my notification center. If I do use the force expire flag, my notification seems to expire after exactly 2 seconds, even though I send "new" notifications because I use volume up/down.

https://github.com/ErikReider/SwayNotificationCenter/assets/93863978/4fe44e57-09a0-4ebc-880f-0ab88ec2572c

To Reproduce Steps to reproduce the behavior: clone https://github.com/vlevit/notify-send.sh and use this command multiple times:

./notify-send.sh --replace-file=/tmp/test "test" -t 2000 -f

Expected Behaviour Close 2 seconds after the last sent command.

Desktop (please complete the following information):

Additional context Not sure if this is a bug on your behalf or on notif-send.sh. (or if this is just non compatible between the two programs) If this is not something you want to look into, because it's really niche, feel free to close this issue. Or if you have a built in solution in swaync that I could use for similar behavior that I missed that would be nice to know!

ErikReider commented 4 months ago

Try using the hint string:synchronous:volume-progress