NowFocus 0.7.2__tar.gz → 0.7.4__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.
Files changed (68) hide show
  1. {nowfocus-0.7.2/src/nowfocus.egg-info → nowfocus-0.7.4}/PKG-INFO +11 -2
  2. {nowfocus-0.7.2 → nowfocus-0.7.4}/README.md +10 -1
  3. {nowfocus-0.7.2 → nowfocus-0.7.4}/pyproject.toml +1 -1
  4. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/__main__.py +12 -11
  5. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/csv.py +2 -2
  6. nowfocus-0.7.4/src/nowfocus/sessions.csv +2 -0
  7. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/task_window.py +1 -1
  8. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/utils.py +2 -5
  9. {nowfocus-0.7.2 → nowfocus-0.7.4/src/nowfocus.egg-info}/PKG-INFO +11 -2
  10. nowfocus-0.7.2/src/nowfocus/sessions.csv +0 -1
  11. {nowfocus-0.7.2 → nowfocus-0.7.4}/LICENSE +0 -0
  12. {nowfocus-0.7.2 → nowfocus-0.7.4}/setup.cfg +0 -0
  13. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/__init__.py +0 -0
  14. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/conf.py +0 -0
  15. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/activitywatch.py +0 -0
  16. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/caldav.py +0 -0
  17. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/psc_timetracker.py +0 -0
  18. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/taskwarrior.py +0 -0
  19. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/timewarrior.py +0 -0
  20. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/todo_template.py +0 -0
  21. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/todotxt.py +0 -0
  22. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/trello.py +0 -0
  23. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/txt.py +0 -0
  24. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/connectors/vikunja.py +0 -0
  25. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/desktop-extras/nowfocus.desktop +0 -0
  26. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/desktop-extras/nowfocus.png +0 -0
  27. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/desktop-extras/nowfocus.svg +0 -0
  28. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/error_dialog.py +0 -0
  29. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/example-todo.txt +0 -0
  30. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/cancel.png +0 -0
  31. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/cancel.svg +0 -0
  32. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/edit.png +0 -0
  33. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/edit.svg +0 -0
  34. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-0.svg +0 -0
  35. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-1.svg +0 -0
  36. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-2.svg +0 -0
  37. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-3.svg +0 -0
  38. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-4.svg +0 -0
  39. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-5.svg +0 -0
  40. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-6.svg +0 -0
  41. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-7.svg +0 -0
  42. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-8.svg +0 -0
  43. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-9.svg +0 -0
  44. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon-red.svg +0 -0
  45. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/icon.svg +0 -0
  46. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/mark-done.png +0 -0
  47. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/mark-done.svg +0 -0
  48. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/pause.png +0 -0
  49. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/pause.svg +0 -0
  50. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/settings.png +0 -0
  51. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/settings.svg +0 -0
  52. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/icon/stop.svg +0 -0
  53. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/install.py +0 -0
  54. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/new_task_dialog.py +0 -0
  55. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/session_edit_dialog.py +0 -0
  56. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/session_options.py +0 -0
  57. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/settings.py +0 -0
  58. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/sound/bell-xylophone-g.mp3 +0 -0
  59. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/sound/dinner-bell.mp3 +0 -0
  60. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/sound/xylophone-chord.mp3 +0 -0
  61. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/styles.css +0 -0
  62. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/upgrade.py +0 -0
  63. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus/user_idle_time.py +0 -0
  64. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus.egg-info/SOURCES.txt +0 -0
  65. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus.egg-info/dependency_links.txt +0 -0
  66. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus.egg-info/entry_points.txt +0 -0
  67. {nowfocus-0.7.2 → nowfocus-0.7.4}/src/nowfocus.egg-info/requires.txt +0 -0
  68. {nowfocus-0.7.2 → nowfocus-0.7.4}/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.2
3
+ Version: 0.7.4
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
- <!-- # note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1 -->
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
- <!-- # note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1 -->
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
  ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nowfocus"
3
- version = "0.7.2"
3
+ version = "0.7.4"
4
4
  authors = [
5
5
  { name="AltruistEnterprises" },
6
6
  ]
@@ -51,7 +51,7 @@ from session_options import SessionOptionsDialog
51
51
 
52
52
  dbg(conf.user,l=3,s='user_settings')
53
53
 
54
- setproctitle.setproctitle(conf.app_name)
54
+ setproctitle.setproctitle(conf.app_id)
55
55
 
56
56
  print(conf.app_name +" running from " + os.path.dirname(os.path.realpath(__file__)))
57
57
 
@@ -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 ',l=-1)
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 and 'do-not-disturb' not in self.session:
373
+ if self.is_running:
374
+ if 'do-not-disturb' not in self.session:
374
375
 
375
- self.open_task_window(None,{'user_inactive_time':user_inactive_time})
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
- self.session['duration'] = 0
383
- self.session['start_time'] = now()
383
+ self.session['duration'] = 0
384
+ self.session['start_time'] = now()
384
385
 
385
- self.indicator.set_icon_full(os.path.abspath('icon/icon-0.svg'),"Device not in use")
386
- self.indicator.set_label("Device not in use","Device not in use")
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
- if 'do-not-disturb' not in self.session and conf.user['randomness_interrupt_interval'] > 0:
389
- self.open_task_window(None)
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)
@@ -0,0 +1,2 @@
1
+ date,duration(minutes),project,task,start time,notes
2
+
@@ -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, callback=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.5 # show as done
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.2
3
+ Version: 0.7.4
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
- <!-- # note: gir1.2-appindicator3-0.1 can be substituted for gir1.2-ayatanaappindicator3-0.1 -->
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