Last active
December 1, 2017 09:21
-
-
Save scmx/8234441 to your computer and use it in GitHub Desktop.
thyme pomodoro configured to change skype status and say -v albert "pomodoro"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thyme | |
bind t run "thyme -d" | |
bind T run "thyme -s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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