https://github.com/ellipticobj/d6-rs
simple d6 roll program in rust
https://github.com/ellipticobj/d6-rs
Last synced: 10 months ago
JSON representation
simple d6 roll program in rust
- Host: GitHub
- URL: https://github.com/ellipticobj/d6-rs
- Owner: ellipticobj
- License: gpl-3.0
- Created: 2025-06-30T10:09:34.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-30T10:37:58.000Z (12 months ago)
- Last Synced: 2025-06-30T11:26:57.597Z (12 months ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d6-rs
tiny, lightweight diceroll program
made this cuz i found out dice symbols exist
## usage
normal usage
```
d6
```
specific number of faces
```
d6
```
## installation and usage
prerequisites: cargo >= 1.87.x
clone this repo
```
git clone https://github.com/ellipticobj/d6-rs.git && cd d6-rs
```
install
```
cargo install --path .
```
run
```
d6
```
## configuration
the config file should be located at ~/.config/d6.cfg
each line in the config file should look like this:
```
token: value
```
### dicesize
changes the default number of faces of the die. (default: 6)
```
dicesize:
```
### animation
activates or deactivates the dice rolling animation. (default: true)
```
animation:
```
### animdur
changes duration of the animation in seconds. (default: 0.6)
```
animdur:
```
### interval
changes the intervals between frames of an animation in milliseconds. (default: 25)
```
interval:
```
### faces
changes the symbol representing the faces of the die, separated by a comma.
```
faces: ,,...
```
---
made with rust btw haha
## plans !
- [x] add more robust checks for custom dice sizes
- [x] finish cofiguration for faces, animation frame intervals
- [x] customization? (animation time, output options, symbols)
- [x] more dice options
- [x] add a way to pipe just the value or to remove the symbol so bash scripting is easier