Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to notify the user when a command has finished #250

Open
zenangst opened this issue May 24, 2023 · 9 comments
Open

Add support to notify the user when a command has finished #250

zenangst opened this issue May 24, 2023 · 9 comments
Labels
feature New feature or request
Milestone

Comments

@zenangst
Copy link
Owner

When configuring a command, the user can check a box called Notify.
Right now it doesn't do anything, so we should really implement this feature 🤡

It is undecided what this should look like, and where it should appear.
Perhaps we should consider configuring what kind of notification should appear: front and center | notification center | show keystrokes

@zenangst zenangst added the feature New feature or request label May 24, 2023
@zenangst zenangst added this to the 3.1.0 milestone May 24, 2023
@zenangst zenangst modified the milestones: 3.1.0, 3.2.0, 3.3.0 Jun 2, 2023
@zenangst
Copy link
Owner Author

zenangst commented Jun 5, 2023

I started tinkering with a "bezel" notification earlier.

Screen.Recording.2023-06-05.at.15.57.54.mov

@zenangst zenangst modified the milestones: 3.5.0, 3.6.0 Jun 7, 2023
@zenangst
Copy link
Owner Author

It would be nice if you could make the notification state something, or even get the output from a terminal or script command.

So if you toggle, Let's say "Lower power mode" via a shell script, it would get the output from the command and use that to indicate to the user if the command was toggle on or off.

This could be a really neat improvement.

@FischLu
Copy link
Contributor

FischLu commented Dec 31, 2024

Perhaps we could consider adding a HUD module, similar to the HUD window that appears on macOS when adjusting volume. The content, position, and styles of the HUD could be fully customizable by the user. This module could be appended to existing commands, functioning like a pipeline. It would execute after the preceding command or module, allowing the HUD to display relevant information, outputs, or predefined text.

I frequently use a similar feature in Hammerspoon to notify me when a specific operation has been completed. It's quite similar to the bezel video approach mentioned above, but with greater flexibility.

@bjrmatos
Copy link

I started tinkering with a "bezel" notification earlier.

if it helps in something, i find the Raycast notification really good and not disruptive at all. it looks like it aligns with your thinking.

video of notification when copying the link of browser tab: https://share.cleanshot.com/pSBxZ8jB

@zenangst
Copy link
Owner Author

Started playing around with a new notification option.

notifications.mov

@zenangst
Copy link
Owner Author

zenangst commented Jan 20, 2025

Screen.Recording.2025-01-20.at.23.35.21.mov

Here's the first draft of the implementation! :)

The blue color is the accent color that the user has chosen, so it will match your system preferences.

@FischLu
Copy link
Contributor

FischLu commented Jan 20, 2025

awesome!!

@FischLu
Copy link
Contributor

FischLu commented Jan 20, 2025

Is this prompt box a standalone component that can follow any command execution?

@zenangst
Copy link
Owner Author

@FischLu You can set up the commands to send notifications when they're running and when they're finished. Especially useful for long-running tasks, like Apple scripts or shell scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants