tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.2k stars 229 forks source link

[modules/wakatime] - New module that connects to https://wakatime.com api #966

Closed Duarte-Figueiredo closed 1 year ago

Duarte-Figueiredo commented 1 year ago

Improvement

Adds a new wakatime module to display coding duration stats.

Module Doc:

Displays the WakaTime daily/weekly/monthly times:

    * https://wakatime.com/developers#stats

Uses `xdg-open` or `x-www-browser` to open web-pages.

Requires the following library:
    * requests

Errors:
    if the Wakatime status query failed, the shown value is `n/a`

Parameters:
    * wakatime.token: Wakatime secret api key, you can get it in https://wakatime.com/settings/account.
    * wakatime.range: Range of the output, default is "Today". Can be one of “Today”, “Yesterday”, “Last 7 Days”, “Last 7 Days from Yesterday”, “Last 14 Days”, “Last 30 Days”, “This Week”, “Last Week”, “This Month”, or “Last Month”.
    * wakatime.format: Format of the output, default is "digital"
        Valid inputs are:
          * "decimal" -> 1.37
          * "digital" -> 1:22
          * "seconds" -> 4931.29
          * "text" -> 1 hr 22 mins
          * "%H:%M:%S" -> 01:22:31 (or any other valid format)
tobi-wan-kenobi commented 1 year ago

very nice addition, many thanks!