Skip to content
Snippets Groups Projects
README.md 1.56 KiB
Newer Older
Ezri's avatar
Ezri committed
# owo.folderaction

Ezri's avatar
Ezri committed
THINGS NEEDED
Ezri's avatar
Ezri committed
* [jq](https://stedolan.github.io/jq/)
* [OWO API KEY](https://whats-th.is)
* [mac](https://apple.com/mac)
* [terminal notifier](https://github.com/julienXX/terminal-notifier)
* some IQ
Ezri's avatar
Ezri committed

1. u download the bash script that i made
Ezri's avatar
Ezri committed
`curl -o epic.bash "https://owo.codes/korzq/owo.folderaction/-/raw/master/epic.bash"`
Ezri's avatar
Ezri committed

2. for this to work, u have to let macOS not write dates. coz the `.` used in the dates breaks the IFS thingy
`defaults write com.apple.screencapture "include-date" 0`

Ezri's avatar
Ezri committed
3. make a screenshot folder at someplace that u own, we will use the name sc PLEASE DONT SAVE THE EPIC.BASH FILE TO THAT SCREENSHOT FOLDER, THE SCRIPT WILL UPLOAD EVERYTHING IN IT, SO YEAH..
Ezri's avatar
Ezri committed
`mkdir sc`

4. now u go to that dir and get the pwd
`pwd`
you copy the output and put it in the folder= place
Ex. `folder="/Users/korzq/sc"`

5. you put your OWO API key in `token="`
Ex. `token="618a7c-8afcbdb1-8ea988d1b-22f11343e'

6. u find a nice url u like from [here](https://whats-th.is/faq.html#how-to-access-files) and put it in `url=`
Ex. `url="https://ket.party"`

7. you make a folder action following the epic vid that i made [here](https://l.ericz.dev/?swqQem)

8. u set ur screenshot app's save location to the folder u just made Ex. `/Users/korzq/sc` from the box u get when u are taking a screenshot

Ezri's avatar
Ezri committed
and ur all set, now when u take a screenshot using the macOS built in screenshot app and save it to that location, the script will run, it will upload it to owo, then deletes the file. yey
after file is uploaded, it will be in your pastebin and u will get a notification