GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - capablemonkey/sleep: When did I fall asleep? Figure out when your Mac lid was closed

BranchesTags
Open more actions menu

Latest commit

 

History

36 Commits
36 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
assets
assets
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.jshintrc
.jshintrc
 
 
Gruntfile.js
Gruntfile.js
 
 
README.md
README.md
 
 
bower.json
bower.json
 
 
dmgConfig.json
dmgConfig.json
 
 
package.json
package.json
 
 

Repository files navigation

sleep

Join the chat at https://gitter.im/capablemonkey/sleep

screenshot

A little node-webkit / nw.js application that attempts to answer the infamous question of "Whoa... when did I fall asleep?" by telling you when you last closed your Macbook lid or when your Mac last fell asleep after being idle for a while.

Actually, I lied. It's not that little. Because it relies on the nw.js runtime, it's like 98MB with the runtime bundled. Sigh.

Sleep has its own project page!

Download it

Download the Mac OS X DMG. Only available for 64-bit Macs.

Playing with the source

Installing dependencies

You'll need to make sure you have nw.js installed.

npm install nw -g

The actual nw.js / node-webkit app is located in the /app directory. The root directory encapsulates the /app directory to provide build tools to actually compile the app.

You'll want to make sure you do npm install in both the root directory and the /app directory.

Running

From the root directory:

nw app

Building

To build, do from the root directory of the repo:

grunt nodewebkit

It'll build sleep.app, targeting OS X 32-bit and 64-bit. You'll find the resulting .app files in /webkitbuilds/sleep/.

Building the DMG

Once the app's been packaged, we'll want to build the DMG. Make sure you have appdmg installed:

npm install -g appdmg

Then, do:

appdmg dmgConfig.json webkitbuilds/sleep.dmg

And your DMG will end up in webkitbuilds/. In the future, consider adding this as a grunt task in the gruntfile.

todo

  • Right now it'll refresh every 5 minutes. But, it'd be nicer if it could detect when the machine comes out of sleep and refresh

About

When did I fall asleep? Figure out when your Mac lid was closed

sleep.gordn.org

Resources

Readme
Activity

Stars

59 stars

Watchers

3 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.