NowFocus 0.7.2__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nowfocus-0.7.2/src/nowfocus.egg-info → nowfocus-0.7.3}/PKG-INFO +11 -2
- {nowfocus-0.7.2 → nowfocus-0.7.3}/README.md +10 -1
- {nowfocus-0.7.2 → nowfocus-0.7.3}/pyproject.toml +1 -1
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/__main__.py +11 -10
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/csv.py +2 -2
- nowfocus-0.7.3/src/nowfocus/sessions.csv +2 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/task_window.py +1 -1
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/utils.py +2 -5
- {nowfocus-0.7.2 → nowfocus-0.7.3/src/nowfocus.egg-info}/PKG-INFO +11 -2
- nowfocus-0.7.2/src/nowfocus/sessions.csv +0 -1
- {nowfocus-0.7.2 → nowfocus-0.7.3}/LICENSE +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/setup.cfg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/__init__.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/conf.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/activitywatch.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/caldav.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/psc_timetracker.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/taskwarrior.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/timewarrior.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/todo_template.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/todotxt.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/trello.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/txt.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/connectors/vikunja.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/desktop-extras/nowfocus.desktop +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/desktop-extras/nowfocus.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/desktop-extras/nowfocus.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/error_dialog.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/example-todo.txt +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/cancel.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/cancel.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/edit.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/edit.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-0.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-1.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-2.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-3.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-4.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-5.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-6.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-7.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-8.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-9.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon-red.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/icon.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/mark-done.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/mark-done.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/pause.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/pause.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/settings.png +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/settings.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/icon/stop.svg +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/install.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/new_task_dialog.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/session_edit_dialog.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/session_options.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/settings.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/sound/bell-xylophone-g.mp3 +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/sound/dinner-bell.mp3 +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/sound/xylophone-chord.mp3 +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/styles.css +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/upgrade.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus/user_idle_time.py +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus.egg-info/SOURCES.txt +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus.egg-info/dependency_links.txt +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus.egg-info/entry_points.txt +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus.egg-info/requires.txt +0 -0
- {nowfocus-0.7.2 → nowfocus-0.7.3}/src/nowfocus.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nowfocus
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: nowfocus: the open source task-tracking self-control panel.
|
|
5
5
|
Author: AltruistEnterprises
|
|
6
6
|
Project-URL: Homepage, https://www.nowfocus.org
|
|
@@ -97,7 +97,16 @@ Nowfocus is a clean, keyboard-driven time management dashboard that flexibly con
|
|
|
97
97
|
|
|
98
98
|
## Installation
|
|
99
99
|
|
|
100
|
-
<!-- #
|
|
100
|
+
<!-- # ubuntu 20.04
|
|
101
|
+
note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1
|
|
102
|
+
|
|
103
|
+
sudo apt install pipx gir1.2-appindicator3-0.1 libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev xprintidle
|
|
104
|
+
|
|
105
|
+
make sure that your using python 3.12
|
|
106
|
+
|
|
107
|
+
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
108
|
+
|
|
109
|
+
-->
|
|
101
110
|
|
|
102
111
|
1. Run the following in terminal:
|
|
103
112
|
```
|
|
@@ -54,7 +54,16 @@ Nowfocus is a clean, keyboard-driven time management dashboard that flexibly con
|
|
|
54
54
|
|
|
55
55
|
## Installation
|
|
56
56
|
|
|
57
|
-
<!-- #
|
|
57
|
+
<!-- # ubuntu 20.04
|
|
58
|
+
note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1
|
|
59
|
+
|
|
60
|
+
sudo apt install pipx gir1.2-appindicator3-0.1 libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev xprintidle
|
|
61
|
+
|
|
62
|
+
make sure that your using python 3.12
|
|
63
|
+
|
|
64
|
+
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
65
|
+
|
|
66
|
+
-->
|
|
58
67
|
|
|
59
68
|
1. Run the following in terminal:
|
|
60
69
|
```
|
|
@@ -363,34 +363,35 @@ class Application(Gtk.Application):
|
|
|
363
363
|
|
|
364
364
|
def handle_device_became_inactive(self):
|
|
365
365
|
|
|
366
|
-
dbg('device became inactive
|
|
366
|
+
dbg('device became inactive', now(),l=-1)
|
|
367
367
|
self.device_is_active = False
|
|
368
368
|
|
|
369
369
|
user_inactive_time = self.get_seconds_since_user_active()
|
|
370
370
|
|
|
371
371
|
self.user_last_active = now() - timedelta(user_inactive_time)
|
|
372
372
|
|
|
373
|
-
if self.is_running
|
|
373
|
+
if self.is_running:
|
|
374
|
+
if 'do-not-disturb' not in self.session:
|
|
374
375
|
|
|
375
|
-
|
|
376
|
+
self.open_task_window(None,{'user_inactive_time':user_inactive_time})
|
|
376
377
|
|
|
377
378
|
else:
|
|
378
379
|
self.session['duration'] = self.session['duration'] - user_inactive_time
|
|
379
380
|
if self.session['duration'] > 60:
|
|
380
381
|
utils.db_save_session(self.session)
|
|
381
382
|
|
|
382
|
-
|
|
383
|
-
|
|
383
|
+
self.session['duration'] = 0
|
|
384
|
+
self.session['start_time'] = now()
|
|
384
385
|
|
|
385
|
-
|
|
386
|
-
|
|
386
|
+
self.indicator.set_icon_full(os.path.abspath('icon/icon-0.svg'),"Device not in use")
|
|
387
|
+
self.indicator.set_label("Device not in use","Device not in use")
|
|
387
388
|
|
|
388
|
-
|
|
389
|
-
|
|
389
|
+
# if 'do-not-disturb' not in self.session and conf.user['randomness_interrupt_interval'] > 0:
|
|
390
|
+
# self.open_task_window(None)
|
|
390
391
|
|
|
391
392
|
|
|
392
393
|
def handle_device_became_active(self):
|
|
393
|
-
dbg('device became active!',l=-1)
|
|
394
|
+
dbg('device became active!', now(),l=-1)
|
|
394
395
|
self.device_is_active = True
|
|
395
396
|
self.user_last_inactive = now()
|
|
396
397
|
self.user_last_active = now()
|
|
@@ -7,11 +7,11 @@ import conf
|
|
|
7
7
|
import utils
|
|
8
8
|
|
|
9
9
|
def save_session(session,user_conf):
|
|
10
|
-
''' date,duration(minutes),project,task,start time '''
|
|
10
|
+
''' date,duration(minutes),project,task,start time, notes '''
|
|
11
11
|
|
|
12
12
|
session['start_time'] = session['start_time'].astimezone()
|
|
13
13
|
|
|
14
|
-
row = [session['start_time'].date(),str(round(utils.divide(session['duration'],60),2)),session['task']['parent_label'],session['label'],session['start_time'].strftime('%H:%M:%S')]
|
|
14
|
+
row = [session['start_time'].date(),str(round(utils.divide(session['duration'],60),2)),session['task']['parent_label'],session['label'],session['start_time'].strftime('%H:%M:%S'),session.get('notes','')]
|
|
15
15
|
|
|
16
16
|
with open(user_conf['file'],'a') as f:
|
|
17
17
|
writer = csv.writer(f)
|
|
@@ -272,7 +272,7 @@ class TaskWindow(Gtk.Window):
|
|
|
272
272
|
self.recreate_header()
|
|
273
273
|
|
|
274
274
|
if utils.taskindex_updated_time() > self.search_cache_refresh_time:
|
|
275
|
-
print("taskindex was updated, utils.taskindex_updated_time()", utils.taskindex_updated_time(), 'self.search_cache_refresh_time',self.search_cache_refresh_time)
|
|
275
|
+
# print("taskindex was updated, utils.taskindex_updated_time()", utils.taskindex_updated_time(), 'self.search_cache_refresh_time',self.search_cache_refresh_time)
|
|
276
276
|
self.refresh_search_cache()
|
|
277
277
|
|
|
278
278
|
return True # This continues the timer
|
|
@@ -422,7 +422,7 @@ def db_query(sql,parameters=None, key=None, error_handling=1, dbg_query=False):
|
|
|
422
422
|
return []
|
|
423
423
|
|
|
424
424
|
|
|
425
|
-
def reindex(t=None, l=None
|
|
425
|
+
def reindex(t=None, l=None):
|
|
426
426
|
if t:
|
|
427
427
|
thread = threading.Thread(target=reindex_one,args=(t,))
|
|
428
428
|
elif l:
|
|
@@ -958,9 +958,6 @@ def db_get_tasks_for_list(list_id, fields = '*'):
|
|
|
958
958
|
return tasks
|
|
959
959
|
|
|
960
960
|
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
961
|
def get_total_time(id, category = 'tasks', start_time = None, end_time = None, get_minutes = None):
|
|
965
962
|
'''If start_time is int or float: it is treated as a number of days,
|
|
966
963
|
Default returns num seconds, (unless get_minutes is True)
|
|
@@ -1634,7 +1631,7 @@ def apply_time_targets_to_item(i,item_type = 'tasks'):
|
|
|
1634
1631
|
|
|
1635
1632
|
if t['minutes_remaining'] < 0 and t['type'] == 'max':
|
|
1636
1633
|
i['priority'] = 0
|
|
1637
|
-
i['status'] = 0
|
|
1634
|
+
i['status'] = 0 # show as done
|
|
1638
1635
|
|
|
1639
1636
|
dbg("Target applied to: "+ i['label'], i, s='targets', l=2 )
|
|
1640
1637
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nowfocus
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: nowfocus: the open source task-tracking self-control panel.
|
|
5
5
|
Author: AltruistEnterprises
|
|
6
6
|
Project-URL: Homepage, https://www.nowfocus.org
|
|
@@ -97,7 +97,16 @@ Nowfocus is a clean, keyboard-driven time management dashboard that flexibly con
|
|
|
97
97
|
|
|
98
98
|
## Installation
|
|
99
99
|
|
|
100
|
-
<!-- #
|
|
100
|
+
<!-- # ubuntu 20.04
|
|
101
|
+
note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1
|
|
102
|
+
|
|
103
|
+
sudo apt install pipx gir1.2-appindicator3-0.1 libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev xprintidle
|
|
104
|
+
|
|
105
|
+
make sure that your using python 3.12
|
|
106
|
+
|
|
107
|
+
sudo add-apt-repository ppa:deadsnakes/ppa -y
|
|
108
|
+
|
|
109
|
+
-->
|
|
101
110
|
|
|
102
111
|
1. Run the following in terminal:
|
|
103
112
|
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
date,duration,project,task,start time
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|