Git Product home page Git Product logo

eggtimer2's People

Contributors

alok avatar bdcarr avatar cogell avatar ihowson avatar sarelvdwalt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eggtimer2's Issues

Current Timers not listed

Hello,

Just downloaded the latest repo and installed it (by moving it into the workflows folder). The current timers are not being listed correctly. Also, for one timer I got the notification that it expired, for another I did not.

macOS MountainNotifier not working

I haven't tried this fork (I don't think), but the MN app thing isn't working anymore for async notifications. I made some changes to the notify_functions.sh script to make this a little easier (I tried to stick with sh rather than bash constructs, since I couldn't tell what interpreter/version would eventually run it; i.e., I didn't use arrays where I would have liked to.).

If you prefer a notification, uncomment the first display line and comment out the second one.

The notification unfortunately opens the script editor if you click it, so I found the dialog a better feel.

_growl() {
	osascript <<EOD
	set imgfd to open for access POSIX file "$growl_icon"
	set img to read imgfd as "TIFF"
	close access imgfd
	tell application id "com.Growl.GrowlHelperApp"
	notify with name "$1" title "$2" description "$3\n$4" application name "EggTimer for Alfred" sticky "true" image img
	end tell
EOD
}

_nc() {
  # ./MountainNotifier/MountainNotifier "$dummy_app" "$2" "$3" "$4" "$nc_icon"
  osascript <<EOF
    # display notification "$4" with title "$2" subtitle "$3"
    display alert "$2" message "$3" & return & "$4" as informational
EOF
}

notify () {

#What is the chosen notification method?
prefs=$(cat info.plist | tr -d '\n\t') #Load workflow's settings info
if [[ "$prefs" = *'<key>output</key><integer>0</integer>'* ]]; then
	notification=default
fi
if [[ "$prefs" = *'<key>output</key><integer>1</integer>'* ]]; then
	notification=NC
fi
if [[ "$prefs" = *'<key>output</key><integer>2</integer>'* ]]; then
	notification=growl
fi

if [ $notification = default ]; then
	notpref=$(cat ../../preferences/notifications/prefs.plist | tr -d '\n\t') 
	if [[ "$notpref" = *'<key>defaultoutput</key><integer>1</integer>'* ]]; then
		notification=growl
	else
		notification=NC
	fi
fi

if [ "$5" = alarm ]; then
	growl_icon="$PWD/resources/icon_alarm.png"
	nc_icon="$PWD/resources/icon_alarm.icns"
	dummy_app="EggTimer Alarm"
else
	growl_icon="$PWD/icon.png"
	nc_icon="$PWD/resources/icon.icns"
	dummy_app="EggTimer"
fi

if [ $notification = growl ]; then
  _growl "$@" &
elif [ $notification = NC ]; then
 _nc "$@" &
fi
}

Recent timers

I have not been able to use "recent timers", a feature previously enabled on the older version of the workflow. I know there's a related ticket re: current timers not being listed, #6.

add install instructions to README

Perhaps I'm missing something very obvious but I dont know how to take this repo and import it into Alfred. I tried compressing it and renaming the extension to .alfredworkflow ๐Ÿ˜

For Alred 3 users

Symbol links required:

``
cd '~/Library/Application Support'
ln -s 'Alfred 3' 'Alfred 2'

cd ~/Library/Caches/
ln -s com.runningwithcrayons.Alfred-3 com.runningwithcrayons.Alfred-2

mkdir -p com.runningwithcrayons.Alfred-3/Workflow Data/carlosnz.eggtimer2
cd com.runningwithcrayons.Alfred-3/Workflow Data/carlosnz.eggtimer2
mkdir running_timers running_autotimers running_alarms recent_timers
``

Because Egg Timer is looking for Alfred 2 folder, which does not exist..
Otherwise you will be prompt to launch EggTimer at login again and again.

Just Thanks!

Thanks for having updated the scripts, I appreciate you published it!

Add note that use must edit info.plist to get notifications to work

Not sure if there is an easier way to enable Notification center or growl but I had to edit the plist and required some hunting around to find the parameter. Maybe a note somewhere explaining which parameter to change and what the values mean (0: no notification, 1: notification center, 2: growl).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.