Jump to content

Luciano Santana

Member
  • Posts

    1
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Luciano Santana

  1. Here is my own custom version : https://github.com/lucianosantana/EggTimer2 (based on the updated version for Alfred 3 by @ianhowson) For the issues with the notification I had to change the notify_functions.sh . I've completely erased the original and added the following : notify () { if [ "$5" = alarm ]; then nc_icon="$PWD/resources/icon_alarm.icns" else nc_icon="$PWD/resources/icon.icns" fi osascript <<EOD set img to POSIX file "$nc_icon" display dialog "$3\n$4" with title "$1" with icon img buttons {"OK"} EOD } I'm using AppleScript to display a Dialog (not a notification). This way the message sticks on the screen until I interact with it and I don't loose the reminder if I'm temporarily away. I also had to invert the order of execution of the sound and alert. Originally it executes the notification then the sound. But changing the notification to dialog blocks the script execution, therefore the sounds executes after user interaction. To solve this issue just search for afplay sounds/alarm_done.mp3 & in the files timer_alarm.sh , timer_auto.sh and timer.sh . Then move it just before the notify command. Might be helpful for you @Basket and @Dzier .
×
×
  • Create New...