3 ms·
SelfControl is nice, in the end it adds an entry on your /etc/hosts . For what is worth the script for the timer app tokill slkck and set DND START: if applica
by esseti 10y ago
SelfControl is nice, in the end it adds an entry on your /etc/hosts .
For what is worth the script for the timer app tokill slkck and set DND
START:
if application "Slack" is running then
tell application "Slack"
quit
end tell
end if
do shell script "curl 'https://slack.com/api/dnd.setSnooze?token=<YOURTOKEN>&num_minutes=$duration'" https://slack.com/api/dnd.setSnooze?token=<YOURTOKEN>&num_mi...
END:
if application "Slack" is not running then
tell application "Slack" to activate
end if
do shell script "curl https://slack.com/api/dnd.endSnooze?token=<YOURTOKEN> https://slack.com/api/dnd.endSnooze?token=<YOURTOKEN>