Created
November 27, 2018 14:33
-
-
Save aerosol/f5524008eef4606fa0e203c696e7ee6c to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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