-
Notifications
You must be signed in to change notification settings - Fork 131
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
Specify the sound for a specific notification #17
Comments
To set the sound for a notification like the old
However, did you also mean you wanted a different sound when a process succeeds vs fails? For example:
|
Yes, in my aliases, I have something like: |
Ah, okay. I actually liked having two different sounds for the notifications as well. With the refactor, I accidentally removed the ability to do that. What do you think about these changes? Basically you can simplify the commands like this. export NOTI_SOUND=Ping
export NOTI_SOUND_FAIL=Hero
# Or define that in your .zshrc file to make this permanent.
run_script="~/scripts/my_script.sh && noti -t $PSNAME -m 'Success' || noti -t $PSNAME -m 'Failure'"
# Or maybe even just
run_script="noti ~/scripts/my_script.sh"
# If my_script.sh fails, the title will automatically be "my_script.sh failed" and
# the message "exit status 1". |
That's perfect. Creates exactly the functionality I need and still allows users to set default sounds, I like it. |
Closing issue because this has been implemented on |
@KingKrimmson
The text was updated successfully, but these errors were encountered: