You are not logged in.

#1 2017-07-07 20:20:05

daankata
Member
Registered: 2017-05-21
Posts: 47

Prevent “notify-send” from stacking

I have added in the i3wm configuration this script, for when the increase volume button is pressed to display desktop notifications with "notify-send".

when the button is pressed:

bindsym XF86AudioRaiseVolume exec notify-send "Current volume `pamixer --get-volume`"

The problems is that the notifications get stacked; e.g.: https://i.stack.imgur.com/qqzz7.png Is there a way to display only the newest notification?

Last edited by daankata (2017-07-07 20:22:56)

Offline

#2 2017-07-07 20:51:23

justasug
Member
Registered: 2014-08-03
Posts: 174

Re: Prevent “notify-send” from stacking

There is definitely a way to update and modify a notification, but I don't think that notify-send exposes that option.
Check this out: https://github.com/vlevit/notify-send.sh

Offline

#3 2017-07-07 21:10:09

daankata
Member
Registered: 2017-05-21
Posts: 47

Re: Prevent “notify-send” from stacking

I will take a look at it. Thank you very much!

Offline

Board footer

Powered by FluxBB