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.
- Python3
- python-dotenv
python3 -m pip install python-dotenv
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.
Just add you toggl api key to the python file.
[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"