Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gagan-bansal/break-to-banta-hai
Saves your eyes and mind.
https://github.com/gagan-bansal/break-to-banta-hai
Last synced: about 6 hours ago
JSON representation
Saves your eyes and mind.
- Host: GitHub
- URL: https://github.com/gagan-bansal/break-to-banta-hai
- Owner: gagan-bansal
- Created: 2022-10-17T04:37:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T04:33:53.000Z (10 months ago)
- Last Synced: 2024-04-13T16:19:42.411Z (7 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# break-to-banta-hai
Saves your eyes and mind.
## Installation
Right now configured for Linux. Prerequisite node.js.
Clone this repo:
```sh
git clone https://github.com/gagan-bansal/break-to-banta-hai.git
cd break-to-banta-hai
npm i
```## Usage
Create a `run.sh` file with following code:
```sh
# first two lines are required if you are using node with nvm
export NVM_DIR="/home/gaganb/.nvm" # set your nvm dir path
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
node /home/gaganb/break-to-banta-hai/index.js
sleep 9s
```**Note:** Please replace `/home/gaganb` with your home directory.
Add the following in your crontab.
```
*/15 * * * * export DISPLAY=:0 && /usr/bin/gnome-terminal --full-screen -- sh /home/gaganb/break-to-banta-hai/run.sh
```**Note:** Sometime you may need to install `dbus-launch` in case you are getting this error (I was getting error on Ubuntu 22.10)
```
Failed to execute child process "dbus-launch" on 'Open in Terminal'
```You can set time interval (in crontab) and display time (in run.sh) as per your requirement.
The messages' list is in `index.js`, edit or add according to your need. Treat this is a simple alert system and use it with your imagination.