Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-06-02 09:13:39

boop
Member
Registered: 2023-05-23
Posts: 15

notifiy-send -r flag not working

I'm trying to increase volume above 100% so I disabled the default volume controls and notifications in pulseaudio plugin and added my own in the keyboard shortcuts now I'm able to change the volume above 100 using keyboard but I wasn't getting a notification

So, I made a script volume-notify and decided to run it with the command to change notification

#!/bin/sh

current_volume="$(pamixer --get-volume-human)"
notify-send  "Volume $current_volume" -t 1800 -r 4567

with dunst it was working fine but with xfce4-notifyd I get lots of notifications like new notification everytime i press volume key I only want one the new notification should replace the prev one like -r flag says.. hmm

also, the notifications get saved in history too.. is there a way to avoid that?

Last edited by boop (2023-06-02 09:16:20)


jumpieee

Offline

#2 2023-06-02 18:34:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: notifiy-send -r flag not working

boop wrote:

...new notification everytime i press volume key I only want one the new notification should replace the prev one like -r flag says.. hmm

That's how it should work. What version of xfce4-notifyd are you running?

also, the notifications get saved in history too.. is there a way to avoid that?

In newer versions you have the option to exclude certain applications from logging:

not.png


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-06-02 18:54:35

boop
Member
Registered: 2023-05-23
Posts: 15

Re: notifiy-send -r flag not working

0.6.4

I don't have those options.. so it's a version problem?

off topic but could you tell me that gtk theme and icon theme?


jumpieee

Offline

#4 2023-06-02 18:59:42

boop
Member
Registered: 2023-05-23
Posts: 15

Re: notifiy-send -r flag not working

I found a fix using python replaces the notification so I'll just make it a python script I'll look into it tomorrow

Last edited by boop (2023-06-02 18:59:55)


jumpieee

Offline

#5 2023-06-02 19:03:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: notifiy-send -r flag not working

boop wrote:

0.6.4

I don't have those options.. so it's a version problem?

off topic but could you tell me that gtk theme and icon theme?

Orchis-Light and Papirus.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2023-06-02 19:10:29

boop
Member
Registered: 2023-05-23
Posts: 15

Re: notifiy-send -r flag not working

great thanks for help smile


jumpieee

Offline

Board footer

Powered by FluxBB