Skip to content

Simple toggl widget for polybar/i3bar, similar to official for macOS

Notifications You must be signed in to change notification settings

mmskv/toggl_polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" 

About

Simple toggl widget for polybar/i3bar, similar to official for macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published