Skip to content

Invoke default action when swaync-client --action is called without an index#712

Open
bakhtiyarneyman wants to merge 2 commits intoErikReider:mainfrom
bakhtiyarneyman:bn-default-action
Open

Invoke default action when swaync-client --action is called without an index#712
bakhtiyarneyman wants to merge 2 commits intoErikReider:mainfrom
bakhtiyarneyman:bn-default-action

Conversation

@bakhtiyarneyman
Copy link
Copy Markdown

Previously, --action without an index would call click_alt_action(0), which silently did nothing if the alt actions box wasn't visible. Now it invokes the notification's default action instead, matching user expectations. When an index is provided, the existing alt action behavior is preserved. Please note, that this is a breaking change: users might need to change their scripts.

bakhtiyarneyman and others added 2 commits March 12, 2026 03:32
… an index

Previously, `--action` without an index would call `click_alt_action(0)`,
which silently did nothing if the alt actions box wasn't visible. Now it
invokes the notification's default action instead, matching user expectations.
When an index is provided, the existing alt action behavior is preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…vior

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant