-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_example.py
37 lines (29 loc) · 1.7 KB
/
config_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import pathlib
this_directory = pathlib.Path(__file__).parent.absolute()
# Your API token from Toggl (Profile settings -> API Token)
API_TOKEN = '0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a'
# Path to images. Should have files active.png and inactive.png
# for speed, replace these with literal string paths to the images
PATH_TO_ACTIVE_IMG = (this_directory / 'images' / 'active.png').as_posix()
PATH_TO_INACTIVE_IMG = (this_directory / 'images' / 'inactive.png').as_posix()
# Path to cache JSON file. Should be write-able.
# for speed, replace this with a literal string paths to the cache file
PATH_TO_CACHE_FILE = (this_directory / 'cache.json').as_posix()
# The background color (RGB) set when asking for general tag status
TAG_ACTIVE_BACKGROUND_RGB = "223,51,54"
TAG_INACTIVE_BACKGROUND_RGB = "85,85,85"
# Dictionary mapping workspace and project to display name
# WID_PID_DICT = {<wid>: {<pid>: <display name>, ...}, ...}
WID_PID_DICT: dict[str, dict[str, str]] = {'1000000':{'100000001':'W1 P1',
'100000002':'W1 P2',
'100000003':'W1 P3'},
'2000000':{'200000001':'W2 P1',
'200000002':'W2 P2'}}
# by default, btt-toggl will apply the tag "btt-toggl" to all entries it creates
TAG_ALL_ENTRIES = True
# by default, btt-toggl validates that command line arguments, paths, etc.
# once you have everything working, set this to False to speed up the script slightly.
# if you run into any problems, try setting this to True before you report an issue.
VALIDATION = True
# how many seconds to wait for a response from the Toggl API
TIMEOUT = 5