// Name: Watch Screenshots Dir
// Watch: ~/Desktop/screenshots
// Description: Don't forget to run following command in your terminal to set default screenshot directory in macOSX: defaults write com.apple.screencapture location ~/Desktop/screenshots
import "@johnlindquist/kit";
import cloudinary from "cloudinary";
import trash from "trash";
const DIR = "screenshots";
const NOTIFY_SOUND_FILE_PATH = false; // home("Desktop/come-here-notification.mp3");
const CUSTOM_DOMAIN = false; // 'https://vojta.io/shots/'
// These are optional and automatically set by the watcher
let filePath = await arg();
let event = await arg();
// Cloudinary options
const options = {
public_id: `${DIR}/${Date.now()}`,
unique_filename: true,