Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.07 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.07 KB

Script: Toggl.com widget

Simple toggl.com time tracker widget that shows currently running project and time it has been running.

Similar to official dock widget for macOS, but for polybar/i3bar/etc.

Requirements

  • Python3
  • python-dotenv python3 -m pip install python-dotenv

API Key

This script requires a toggl api key. These are attached to each toggl user, and instructions for finding it are here.

Put your api key into the file togglapi.env - and make sure this is in your .gitignore if you have a dotfiles repository.

Screenshots

screenshot

Configuration

Just add you toggl api key to the python file.

Module

  [module/toggl]
  type = custom/script
  
  exec = "python3 $HOME/.config/polybar/toggl.py"
  interval = 20.0
  format = <label>
  format-foreground =  ${colors.fg}
  format-padding = 1
  ; Add this line if you have xdg-utils
  ; click-left = "xdg-open https://toggl.com/app/timer"