Crates.io | bilal |
lib.rs | bilal |
version | |
source | src |
created_at | 2021-04-19 07:39:44.524902 |
updated_at | 2024-12-13 19:53:31.31878 |
description | a CLI salah time |
homepage | |
repository | https://github.com/azzamsa/bilal |
max_upload_size | |
id | 386545 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
bilal is a CLI salah time.
bilal all Show all salahs time
bilal current ... current salah time
bilal current --json .... with JSON format
To configure Bilal, first create a file named config.toml
in ~/.config/bilal/
on Unix-like systems. On Windows, place it under \AppData\Bilal\
. If you prefer a custom location, simply set the BILAL_CONFIG
environment variable.
Next, add your configuration details to the config.toml
file:
latitude = -6.18233995
longitude = 106.84287154
madhab = "Shafi"
method = "Egyptian"
To see more options, please read the wiki
You can use Bilal with i3status-rust
to show salah time in your status.
i3status-rust
configuration Example:
[[block]]
block = "custom"
cycle = [
"bilal current -J",
"bilal next -J",
]
on_click = "<command>"
interval = 300
json = true
See more examples to learn other variations.
If you like bilal
to support your favourite status-bar, please open new issue
with the valid input of your status-bar. In i3status-rust
the valid input it would be {"icon": "ICON", "state": "STATE", "text": "YOURTEXT"}
.
The release page includes pre-compiled binaries for GNU/Linux, macOS and Windows.
Using cargo-binstall
cargo binstall bilal
Using Rust's package manager cargo:
cargo install bilal
git clone https://github.com/azzamsa/bilal
# Build
cd bilal
cargo build
# Run unit tests and integration tests
cargo test
# Install
cargo install --path .
To learn more read contributing.md
The name Bilal was chosen in reference to the Bilal bin Rabah. The first mu'azzin, chosen by Muhammad PBUH himself.
Copyright (c) 2020-2024 azzamsa
Bilal is distributed under the terms of GPL V3 License.