GithubHelp home page GithubHelp logo

yassa9 / bible-ar-random-verse Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 2.48 MB

Getting Holy Bible ( New Testament ) random verse within a notification in i3wm

Python 100.00%
bible bible-study bible-verse notifications python

bible-ar-random-verse's Introduction

Bible-ar-random-verse

Getting Holy Bible ( New Testament ) random verse within a notification in i3wm

Verses full text is got by Bible database from WordofGOD

It downloaded with a huge database, choose AVD arabic Van Dyke edition.

Then the downloaded .json file is formatted into .txt file with 3 columns: the verse, book name, chapter & verse number

After that, the process of coding python file to read a random line from 23145 ( 1st verse in Matthew book in new testament ) to line 31103 ( obviously the last ) , however you can edit it to 1 ~ 31103 to read both old & new testaments.

Also the python script when called, it writes the verse number into CSV file, and then being ordered in verseord.csv file so you can trace most randomly viewed verses.

I used notify-send package in pacman package manager to parse the verse in it, calculated timeout of the notification based on length of the verse, you can freely adjust it.

Finally I editied my i3blocks config file to make the notification pops out when I press on i3blocks desired label by adding:

[separator]
[name]
command=echo "Random Verse"; i3-msg exec python3 [YOUR_PATH]/main.py
interval=once

Notification example:
image

bible-ar-random-verse's People

Contributors

yassa9 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.