Skip to content

Instantly share code, notes, and snippets.

@scmx
Last active December 1, 2017 09:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scmx/8234441 to your computer and use it in GitHub Desktop.
Save scmx/8234441 to your computer and use it in GitHub Desktop.
thyme pomodoro configured to change skype status and say -v albert "pomodoro"
#!/usr/bin/env ruby
set :tmux, true
before do
%x(~/bin/set-skype-status DND)
%x(say -v albert 'pomodoro started')
end
after do
%x(~/bin/set-skype-status ONLINE)
%x(say -v albert 'pomodoro ended')
end
# Thyme
bind t run "thyme -d"
bind T run "thyme -s"
#!/usr/bin/env bash
usage() {
cat <<EOD
Usage: set-skype-status <STATUS>
EOD
}
[ $# -eq 1 ] || usage
osascript <<EOD
tell application "Skype"
send command "SET USERSTATUS $1" script name "bash"
end tell
EOD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment