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.
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.
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.
Open up a terminal and navigate to the folder containing the downloaded installer files and run
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
sudo rpm -i Coffin.rpm
This will actually install Coffin as a utility application which can be accessed from your respective distributions application launchpad.
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.
Go to the applications folder and delete the Coffin application by sending to trash.
Open up a terminal and run:
sudo dpkg --remove Coffin
sudo rpm -e Coffin.rpm
Open up the program files folder and delete the Coffin folder.
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.
cd Coffin
sudo npm install -g
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
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
First run
npm run build # this will create versions of the application for MacOS, Windows, & 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/
electron-packager . Coffin --platform darwin --arch x64 --out dist/
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/
electron-packager . Coffin --platform darwin,win32,linux --arch x64 --icon=iconnameonly --out dist/
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.