Skip to content

An Ubuntu applet that displays the % of the work day passed

Notifications You must be signed in to change notification settings

Benhgift/work_time_percent_applet

Repository files navigation

image

Work Day Percentage Display Applet

This will display the percent of the work day that's passed (8am - 5pm) as an Ubuntu or OSX toolbar applet

image

Quickstart

To run: python3 main.py # 8AM to 5PM by default

If you want a different time range then pass it in, for example: python3 main.py 9 20 or edit the config.py file to change the defaults.

Ubuntu

To run on boot open the Ubuntu "Startup Applications" app and add an entry for main.py

Requirements

You'll need to install the fire package

pip3 install fire

OSX

Requirements

You'll need to install the fire and rumps packages

pip3 install fire rumps

Tests

To run tests run pytest

Config

You can edit the start and end times in the config.py file, and change the number of decimal places to display.

You can also change the icon that appears next to the applet by passing in a number from 0-4 for --icon_num when you run the applet:

python3 main.py --icon_num=1

You can also run it as a full day percentage with python3 main.py 0 0

About

An Ubuntu applet that displays the % of the work day passed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •