You are not logged in.

#1 2013-11-15 14:12:33

ibes
Member
From: Austria
Registered: 2013-04-26
Posts: 10

[SOLVED] Actions in notifications with notify-send

Using notify-send, is there a way to associate a notification with some action (e.g. execution of a script) when clicking on it? Or is it possible to include a button within the notification? To better understand what I mean, please have a look the below image depicting a notification sent by Rhythmbox that contains some buttons.

2euo7b6.jpg

Last edited by ibes (2013-11-16 08:00:58)

Offline

#2 2013-11-15 15:31:09

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: [SOLVED] Actions in notifications with notify-send

Hello
Maybe this link will be useful for you : https://wiki.ubuntu.com/NotificationDesignGuidelines

Offline

#3 2013-11-15 16:17:01

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: [SOLVED] Actions in notifications with notify-send

No, notify-send doesn't support the use of actions/buttons.

Offline

#4 2013-11-15 21:31:13

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: [SOLVED] Actions in notifications with notify-send

You might be interested in "dunstify" which is a part of the dunst daemon, but is not installed with the AUR package. It is a more fleshed out interface for libnotify than notify-send.

dunstify -A yes,ACCEPT -A no,DECLINE "Call waiting"

https://github.com/knopwob/dunst

Last edited by progandy (2013-11-15 21:31:33)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2013-11-16 08:00:44

ibes
Member
From: Austria
Registered: 2013-04-26
Posts: 10

Re: [SOLVED] Actions in notifications with notify-send

Thank you all for your replies! I think I'll have a look at dunstify then.

Offline

#6 2024-02-15 14:03:43

C0rn3j
Member
Registered: 2016-02-14
Posts: 19

Re: [SOLVED] Actions in notifications with notify-send

Using my necro-powers as this is still one of the top search engine results and I wasted too much time finding related info

notify-send does support actions and buttons now, see the SE thread that links here: https://unix.stackexchange.com/a/763538/435522

Last edited by C0rn3j (2024-02-15 14:04:09)

Offline

Board footer

Powered by FluxBB