{"action":"created","issue":{"url":"https://api.github.com/repos/josh/Aware/issues/10","labels_url":"https://api.github.com/repos/josh/Aware/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/josh/Aware/issues/10/comments","events_url":"https://api.github.com/repos/josh/Aware/issues/10/events","html_url":"https://github.com/josh/Aware/pull/10","id":124273984,"number":10,"title":"\"Reset after\" preference menu","user":{"login":"josh","id":137,"avatar_url":"https://avatars.githubusercontent.com/u/137?v=3","gravatar_id":"","url":"https://api.github.com/users/josh","html_url":"https://github.com/josh","followers_url":"https://api.github.com/users/josh/followers","following_url":"https://api.github.com/users/josh/following{/other_user}","gists_url":"https://api.github.com/users/josh/gists{/gist_id}","starred_url":"https://api.github.com/users/josh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh/subscriptions","organizations_url":"https://api.github.com/users/josh/orgs","repos_url":"https://api.github.com/users/josh/repos","events_url":"https://api.github.com/users/josh/events{/privacy}","received_events_url":"https://api.github.com/users/josh/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-29T21:58:05Z","updated_at":"2015-12-30T21:01:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/josh/Aware/pulls/10","html_url":"https://github.com/josh/Aware/pull/10","diff_url":"https://github.com/josh/Aware/pull/10.diff","patch_url":"https://github.com/josh/Aware/pull/10.patch"},"body":"Rough UI implementation of #1 feature requested by @pmarsceill.\r\n\r\n<img width=\"299\" alt=\"screen shot 2015-12-29 at 3 53 33 pm\" src=\"https://cloud.githubusercontent.com/assets/137/12042842/8141e384-ae44-11e5-8d2f-0fa92cf93b45.png\">\r\n\r\n* Doesn't handle current \"selected\" preference. Would need to figure out what to display if \"default\" is manually set to a non-preset option (via `defaults write com.github.josh.Aware userIdleSeconds -int 10`)\r\n* Unsure of the usefulness of the other defaults. So far I'm liking \"2 minute\" idle time. Though, I still need to do some real world testing on other machines."},"comment":{"url":"https://api.github.com/repos/josh/Aware/issues/comments/168073190","html_url":"https://github.com/josh/Aware/pull/10#issuecomment-168073190","issue_url":"https://api.github.com/repos/josh/Aware/issues/10","id":168073190,"user":{"login":"josh","id":137,"avatar_url":"https://avatars.githubusercontent.com/u/137?v=3","gravatar_id":"","url":"https://api.github.com/users/josh","html_url":"https://github.com/josh","followers_url":"https://api.github.com/users/josh/followers","following_url":"https://api.github.com/users/josh/following{/other_user}","gists_url":"https://api.github.com/users/josh/gists{/gist_id}","starred_url":"https://api.github.com/users/josh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh/subscriptions","organizations_url":"https://api.github.com/users/josh/orgs","repos_url":"https://api.github.com/users/josh/repos","events_url":"https://api.github.com/users/josh/events{/privacy}","received_events_url":"https://api.github.com/users/josh/received_events","type":"User","site_admin":true},"created_at":"2015-12-30T21:01:46Z","updated_at":"2015-12-30T21:01:46Z","body":">  For example, if I'm editing audio or video and am working with clips longer than 2 mins. I'd be listening / watching without mouse or keyboard activity and the timer will idle out.\r\n\r\nWe could totally increase that 2 mins -> 5, 15, whatever to better match the average use case. So far its been fine here, but maybe I can try running with 5 mins for a week and seeing if it has any negatives over 2. So far the sample population is just us 😁, may getting more feedback can help us tweak that.\r\n\r\nAlso trying to think about what other system events we might be able to cue on. Just brainstorming: if the system is playing audio/video/mic is on. Audio itself probably isn't so good since you could be AFK and just listening. Idle would be okay then. Too bad we can't access people's iPhone/Apple watch motion sensors and know when people leave the room.\r\n\r\nRelated to configuration, but now anytime the machine goes to sleep, it automatically clears the timer.\r\n\r\nhttps://github.com/josh/Aware/blob/287e38f2b10493135489408102d83ce380049754/Aware/AppDelegate.swift#L43-L45\r\n\r\nIt was originally to fix a bug after waking for sleep, but I do like the behavior now. Anytime you close your laptop, that should give you points for \"taking a break\".\r\n\r\n> \"Reset\" seems like a bit of a vague label. Almost as if it will zero out the recorded time completely, rather than pause it. Perhaps \"Idle after\" or \"Pause after\" would be more descriptive?\r\n\r\n👍 \"Idle after\" \r\n\r\n> This also begs the question of do we want a manual way to pause the timer?\r\n\r\nSince we're bound to sleep now, we can probably just rely on that. If you wanted to support \"Take a break now\", that can just be Apple -> Sleep or setup a sleep hot corner.\r\n\r\n> Can we use this data in any meaningful way? For example, showing reports of most active days per week (like a punch card view?) Typing speeds? Longest breaks? Maybe users can get a digest view.\r\n\r\nOh, yeah. I've thought about this a little. I was thinking even for debugging purposes, logging to a file all the start and stop timestamps.\r\n\r\nThe one summary piece I thought about adding was \"longest time at the computer in the last 24 hours\". Sometime I could check at the end of the day and see \"3 hours\", shit I went that long without a break today. Maybe that, plus total time on the machine in the last day or 24h. Anyway, this is a new thread 😁 "}}