You are not logged in.

#1 2020-05-24 15:48:41

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Clickable notification [SOLVED]

Often time, in the top right corner of my screen, Web Sites I allowed to ( example Reddit) send notifications with URL I can click.

Thunderbird too etc etc....

But the Notification tool we use in Lithium make it impossible for me to click a URL in the notification....

What would be the easiest way, that if I get a notification, to make it " clickable" ?

For now, the notification show up and dissapear after a few secondes and I can't click it...

Last edited by yoda (2020-05-28 17:53:14)


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#2 2020-05-24 16:55:56

damo
....moderator....
Registered: 2015-08-20
Posts: 6,029

Re: Clickable notification [SOLVED]

yoda wrote:

...
For now, the notification show up and dissapear after a few secondes and I can't click it...

You can set the default timeout either via the configuration gui ( Menu -> Notifications ), or using the '-t' parameter in the notify-send command.

IIRC xfce4-notifyd specifically does not support "clickable" actions, using notify-send. You can add a link using markup, but it doesn't function.

notify-send "Title" "<a href='www.google.com'>Link</a>"

Last edited by damo (2020-05-24 17:08:10)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2020-05-24 18:13:07

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

tks

Yes I saw for the delay we can modify


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#4 2020-05-25 05:56:32

ohnonot
...again
Registered: 2015-09-29
Posts: 4,611
Website

Re: Clickable notification [SOLVED]

damo wrote:

IIRC xfce4-notifyd specifically does not support "clickable" actions, using notify-send. You can add a link using markup, but it doesn't function.

Hmmm, apparently not.
Dunst does! Upon install it replaces the existing notification daemon. Easy configuration via a single config file.


BL quote proposals to this thread please.
how to ask smart questions | my repos / my repos | my blog
---
Thank you for posting direct image links!

Offline

#5 2020-05-25 10:44:56

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

tks @ohnonot !
Will try


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#6 2020-05-25 12:05:53

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

@ohnonot  do you use it ? (Dunst)

I installed it but it doesn't seem to work... Rebooted etc

Will continue reading info I find about it on the web


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#7 2020-05-26 17:20:27

ohnonot
...again
Registered: 2015-09-29
Posts: 4,611
Website

Re: Clickable notification [SOLVED]

I use dunst.
Assume you send a notification like this:

notify-send "Test" "<a href=\"https://forums.bunsenlabs.org/\">BL</a>"

And you have this in your ~/.config/dunst/dunstrc:

markup = full
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox
mouse_middle_click = do_action
# Context menu.
context = ctrl+shift+period

then you can either widdle-click the "BL" text in your notification, or press ctrl+shift+period and just enter on what dmenu displays.


BL quote proposals to this thread please.
how to ask smart questions | my repos / my repos | my blog
---
Thank you for posting direct image links!

Offline

#8 2020-05-26 17:50:54

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

tks a lot !!

I just installed it with defaults.

your test seems to work.

I don't have  ~/.config/dunst/dunstrc   but I do have /etc/xdg/dunst/dunstrc

You want me to create it  in my home folder .config ?

Tks


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#9 2020-05-26 21:36:52

hhh
Meep!
Registered: 2015-09-17
Posts: 9,839
Website

Re: Clickable notification [SOLVED]

Copy that /etc/xdg file to your local config directory and new edits will override the global config.

So, yes!

Offline

#10 2020-05-27 13:05:33

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

Tks !! Tks for your patience ;-)


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#11 2020-05-27 13:14:37

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

Do you have any idea why I would get this error, I am vi the file as root...   Noobie question sorry
See the error at the end when I :wq!

show_indicators = yes
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox
mouse_middle_click = do_action
# Context menu.
context = ctrl+shift+period
~                                                                                                                              
~                                                                                                                              
~                                                                                                                              
~                                                                                                                              
~                                                                                                                              
"/home/yoda/.config/dunst/dunstrc"
"[b]/home/yoda/.config/dunst/dunstrc" E212: Can't open file for writing[/b]

Last edited by yoda (2020-05-27 13:15:53)


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

#12 2020-05-27 13:20:51

yoda
Member
From: Montreal
Registered: 2018-12-28
Posts: 148
Website

Re: Clickable notification [SOLVED]

FOrget it LOL

I am stupid, didn't created the dunst folder before

It's ok now


According to Buddhism, we all met several times... This time, it's on this forum :-) May we meet again

Offline

Board footer

Powered by FluxBB