ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.17k stars 60 forks source link

Key binding to close notification outside of center #112

Closed elshize closed 2 years ago

elshize commented 2 years ago

I haven't found a way to close a notification with a key combination. I mean not inside the notification center, but rather the notification window that pops up. Essentially, I'd like to emulate clicking the X icon in the corner to dismiss it right away instead of waiting.

It seems like swaync-client can't do that, I only found a way to clear all notifications, but I'm looking to dismiss them, and not clear altogether.

Is this possible to do currently in any way? If no, I think it would be a good idea for a new feature.

ErikReider commented 2 years ago

I'll look into this

ErikReider commented 2 years ago

@elshize does the branch fit your needs? :)

elshize commented 2 years ago

@ErikReider yep, just what I was looking for :) also love that there are options for both hide and close, depending on which action you want to take :rocket:

Also, just compiled and tested, and works great :muscle:

ErikReider commented 2 years ago

Cool! Then I'll merge it :)