ErikReider / SwayNotificationCenter

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

[Feature] notification action from swaync-client #437

Open SuperDuperDeou opened 2 weeks ago

SuperDuperDeou commented 2 weeks ago

Is your feature request related to a problem? Please describe. I'd like to be able to open a notification action with a simple keybinding without having to open the control center. I could press the button like a normal person, but did I mention I use Vim?

Describe the solution you'd like Adding a command line flag to swaync-client that closes the notification if there's no action, and does the action if there is one.

The only problem is when a notification has multiple actions. Dunst, with dnstctl action, solves it by spawning a dmenu window, but I'm not sure it's compatible with swaync's design philosophy.

Another way I can think of is adding an argument (swaync-client --action [action_number]).

Additional context I'm migrating from Dunst to Swaync.