Skip to content

Instantly share code, notes, and snippets.

@amazingmarvin
amazingmarvin / marvin-toggl-tracking.sh
Created June 17, 2021 10:02 — forked from selfire1/marvin-toggl-tracking.sh
A shell script to start tracking an Amazing Marvin task in Toggl Track.
#!/bin/bash
# -------------------------------------------------
# Before running the script, make sure that you understand it. Running code you find on the Internet may damage your system.
# -------------------------------------------------
# In Amazing marvin, set the path to this script as "Start time tracking task" in the "System Triggers strategy" like this:
# /Path/to/this/script $TASK_TITLE
# Replace "YourSecretToken" with your Toggl API token below.
# -------------------------------------------------
curl -v -u YourSecretToken:api_token \