pomodoro.sh to track your pomodoro session and play a sound, shownotification
after pomodoro finished
In that case send a USR1 signal to the process if you want to see the elapsed time
The script will update you slack status if slack token set
You can set slack token by setting the SLACK_TOKEN env var
Or put the token into a gpg encrypted file to $HOME/.secret/slack_token.gpg
You can override that path by setting the SLACK_TOKEN_FILE_PATH env var
- -m minutes Duration of the pomodoro session in minutes (see
$DEFAULT_MINUTESin the source for default value) - -a alarm_sound_file played after pomodoro finished (see
$DEFAULT_SOUNDin the source for default value) - -q Don't show elapsed time
- -n feature Turn off feature. Available values:
- SLACK
- -h Show help
Send an USR1 to print elapsed time (useful if -q is used)
Some of the parameters can be configured with environment variables:
POMODORO_MINUTESSame as -m option. Duration of the pomodoro session in minutesPOMODORO_SOUNDSame as -a option. Sound file played after pomodoro finishedPOMODORO_SLACK_TOKEN_FILE_PATHPath to a gpg encrypted file which content is your slack tokenPOMODORO_SLACK_EMOJIAn emoji as text which should be shown when you are doing in a pomodoro sessionPOMODORO_SLACK_STATUS_TEXTStatus message shown during pomodoro session
- aplay to play sound after pomodoro finished
- date for time related functions
- gpg if you store your slack token in gpg encrypted file
- curl to call slack api
- jq for slack related functions: https://stedolan.github.io/jq/