Skip to content

Instantly share code, notes, and snippets.

@Lukewh
Last active April 1, 2020 17:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Lukewh/384b58fd99081179443df73400ff1f85 to your computer and use it in GitHub Desktop.
Save Lukewh/384b58fd99081179443df73400ff1f85 to your computer and use it in GitHub Desktop.
i3 bar for motivation in these times of working from home. Thanks https://gofuckingwork.com/
[motivation]
command=/path/to/motivation/script/motivation
interval=900
#!/bin/bash
MOTIVATIONS=$(curl -s 'https://gofuckingwork.com/quotes.json' | jq -c -r '[.language.en[] | if length == 2 then .[0] else . end] | join(":")')
IFS=':' read -ra QUOTES <<< "$MOTIVATIONS"
index=$(shuf -i 1-${#QUOTES[@]} -n 1)
echo "${QUOTES[$index-1]}"
@Lukewh
Copy link
Author

Lukewh commented Mar 31, 2020

For example:
Screenshot from 2020-03-31 16-24-02

@unixbhaskar
Copy link

Dude!!

@danhab99
Copy link

danhab99 commented Apr 1, 2020

YOU'RE NOT A KARDASHIAN. FUCKING WORK. I feel so motivated!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment