Skip to content
/ Coffin Public

⚰️ Is an Electron πŸ–₯️ Cross-Platform Desktop App providing sleep notifications for Vampires πŸ§›πŸ»

License

Notifications You must be signed in to change notification settings

teksrc/Coffin

Repository files navigation

Coffin

Coffin

Vampire devs needed an application to remind them to stop coding, and go to sleep.

Version Github All Releases Codacy Badge framework platform license

VAMPIRE DEVS

Coffin is an app designed to help you wake up in-between sleep cycles and allows you to start the day with a clear mind.

Every time you sleep, you enter into a series of sleep cycles that last for around 90 minutes, but even if you seem to get plenty of hours of sleep, waking up during one of the cycles can make you feel groggy and exhausted. A sleep cycle is a 90-minute chunk of time where your body transitions through various phases of sleep with the goal being deep REM sleep. Experts recommend trying to sleep exactly 7.5 hoursβ€Šβ€”β€Šor even 9 hours, if you have the time. Coffin will remind you to take a rest and that you can always come back to the work tomorrow.

Based on your wakeup time, the sleep algorithm Coffin calculates the best times for you to sleep. It will notify you with native notifications throughout the night when the optimal times to shutdown your computer and head to your coffin. This notification also has a button to immediately shutdown the OS, if necessary.

Coffin is perfect for those with a tight schedule, and students.

Inpsiration came from http://sleepyti.me and my unhealthy lack of a correct sleep cycle during the Thinkful bootcamp.

Demo of Coffin

Usage

Downloads

To get the full sourced version run in terminal:

git clone https://github.com/Frankcarvajal/Coffin

Otherwise to just get the application click the link before to head to the latest release page and download your respective platform.

Install

Mac

Drag the Coffin.app from the Coffin dmg to the Applications folder. Double Clicking on the app should run it and it could be kept in the dock from here.

Linux

Open up a terminal and navigate to the folder containing the downloaded installer files and run

Debian

First make sure you have the dependency libappindicator1

sudo apt-get install libappindicator1

then depending on your system architechture either run

sudo dpkg -i Coffin_1.0.0_amd64.deb

Or:

sudo dpkg -i Coffin_1.0.0_x86.deb

RedHat

sudo rpm -i Coffin.rpm

This will actually install Coffin as a utility application which can be accessed from your respective distributions application launchpad.

Windows

Open up another windows explorer and navigate to your program files folder (x86 or 64 bit is irrelevant). Now drag the entire Coffin Windows folder you extracted from the downloaded zip in the previous step over to the program files folder. Go into the folder that was just dragged over and find the Coffin.exe and run it. Now the application will show up in the dock where it can be pinned.

Uninstall

Mac

Go to the applications folder and delete the Coffin application by sending to trash.

Linux

Open up a terminal and run:

Debian

sudo dpkg --remove Coffin

RedHat

sudo rpm -e Coffin.rpm

Windows

Open up the program files folder and delete the Coffin folder.

Helping Out

It is assumed you already have node installed and therefore npm.

To download the full source code and install the devDependencies run the following lines:

git clone https://github.com/Frankcarvajal/Coffin
cd Coffin
npm install
cd ..
npm start # this will run the application

If you get some error and the application wont run try running the following lines and see if that works.

Linux/Mac

cd Coffin
sudo npm install -g

Windows

Right click on the start menu icon at the bottom left and click on the option to open a command prompt in developer mode cd to the coffin directory then run

npm install -g

CSS Compilation

Coffin's styling was made with: Sass v3.3.14 Ruby v2.3.1p112.

For Mac users ruby is pre-installed, but if you are on Windows or Linux, you will need to install Ruby

To compile the stylesheet you'll only need to run the following command:

sass --watch scss:css --style compressed

To Package Electron Application To Binary

First run

Linux/Mac/Windows

npm run build # this will create versions of the application for MacOS, Windows, & Linux

Package.json Build variations

Linux

For 64 Bit Binary:

electron-packager . Coffin --platform linux --arch x64 --out dist/

For 32 Bit Binary

electron-packager . Coffin --platform linux --arch ia32 --out dist/

Mac

electron-packager . Coffin --platform darwin --arch x64 --out dist/

Windows

For 64 Bit Binary:

electron-packager . Coffin --platform win32 --arch x64 --out dist/

For 32 Bit Binary

electron-packager . Coffin --platform win32 --arch ia32 --out dist/

App Icon and Build for All Build variations

electron-packager . Coffin --platform darwin,win32,linux --arch x64 --icon=iconnameonly --out dist/

License

MIT License

Copyright (c) 2017 Franklin Carvajal

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

⚰️ Is an Electron πŸ–₯️ Cross-Platform Desktop App providing sleep notifications for Vampires πŸ§›πŸ»

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published