Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-11-01 15:54:21

kaqqao
Member
Registered: 2015-11-01
Posts: 2

How to use xfce4-notifyd gauges?

I've read that xfce4-notifyd has implemented Canonical's extension allowing for progress bar/gauge style notification long ago, and it is obviously true as xfce4-volumed is using it. But, is this feature in any way accessible from notify-send?
If not, is there an example how to use it from Python or some other language?

Offline

#2 2015-11-02 03:44:12

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

Re: How to use xfce4-notifyd gauges?

I don't believe that notify-send supports this directly. Both xfce4-volumed and xfce4-pulseaudio-plugin use a libnotify wrapper to perform this function.

However, a little while ago, I came across a notify-send replacement (bash script) that does exactly this. You can replicate the volume gauge update via:

RID=$(notify-send "Volume" -p -i audio-volume-medium -h int:value:75)
notify-send "Volume" -r $RID -i audio-volume-high -h int:value:100

Naturally, you'll need to programmatically set the icon and value levels as required.


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 2015-11-02 09:01:45

kaqqao
Member
Registered: 2015-11-01
Posts: 2

Re: How to use xfce4-notifyd gauges?

Nice tip! Thanks!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 537.92 KiB (Peak: 558.92 KiB) ]