Skip to content

feat: add --notif-action flag to pass actions to notification daemon#154

Open
AuthenticSm1les wants to merge 1 commit into
Gustash:mainfrom
AuthenticSm1les:feat/notification-actions
Open

feat: add --notif-action flag to pass actions to notification daemon#154
AuthenticSm1les wants to merge 1 commit into
Gustash:mainfrom
AuthenticSm1les:feat/notification-actions

Conversation

@AuthenticSm1les
Copy link
Copy Markdown

Summary

Add support for passing notification actions to the notification daemon when taking screenshots.

Changes

  • Added -A / --notif-action CLI option (can be used multiple times)
  • Actions are passed to notify-send via --action flags
  • If no actions are specified, automatically adds a default action open=xdg-open <path> to open the screenshot

Usage

# Use default action (opens with xdg-open)
hyprshot -m output

# Specify custom actions
hyprshot -m output --notif-action "open=Open Screenshot" --notif-action "delete=Delete"

Closes #153

Add support for passing notification actions to the notification daemon.
If no actions are specified, automatically adds 'open=xdg-open <path>'
as a default action.

New flag: -A, --notif-action <action>
Format: id=label (can be used multiple times)

Closes Gustash#153
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.

Add support for passing notification actions to daemon

1 participant