Skip to content

Instantly share code, notes, and snippets.

@aerosol
Created November 27, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerosol/f5524008eef4606fa0e203c696e7ee6c to your computer and use it in GitHub Desktop.
Save aerosol/f5524008eef4606fa0e203c696e7ee6c to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
notify-send --icon=dialog-positive "$0" "$(timew start $1)" && echo "$1" > /tmp/track-current
#!/usr/bin/bash
notify-send --icon=dialog-error "$0" "$(timew stop $1)" && rm /tmp/track-current
#!/usr/bin/bash
if [ -f /tmp/track-current ]; then
arr[0]="*"
arr[1]="-"
rand=$[ $RANDOM % 2 ]
echo "(${arr[$rand]}) $(head /tmp/track-current)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment