-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmw-attendor.el
33 lines (24 loc) · 1.03 KB
/
mw-attendor.el
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
;;; mindwave-attendor.el --- Hassle the user when the mindwave attention level reaches a lower threshold
;; Copyright (C) 2012 Jonathan Arkell
;; Author: Jonathan Arkell <[email protected]>
;; Created: 16 June 2012
;; Keywords: mindwave
;; Version 0.1
;; This file is not part of GNU Emacs.
;; Released under the GPL
;;; Commentary:
;; Please see the org-file that this was generated from.
(defgroup mw-attendor '()
"Mindwave Attendor.")
(defcustom mw-attendor/alert-user-hooks '()
"Hooks to run when the users attention level crosses a certain threshold."
:type hook)
(defcustom mw-attendor/attention-threshold 40
"Threshold value for attention.
When the users attention level falls below this level, run the hooks ")
(defun mw-attendor/brain-ring-full-hook (avg)
"hook to run the attentive hooks when the threshold values are received."
(when (< mw-attendor/attention-threshold
(cdr (assoc 'attention (cdr (assoc 'eSense average)))))
(run-hooks mw-attendor/wait-til-ready-hook)))
(provide 'mindwave-attendor)