| Crates.io | rice |
| lib.rs | rice |
| version | 3.0.0 |
| created_at | 2019-11-28 00:01:02.504416+00 |
| updated_at | 2025-09-02 21:49:19.885684+00 |
| description | 🍚 A modern, feature-rich system information tool written in Rust |
| homepage | https://github.com/jorgegonzalez/rice |
| repository | https://github.com/jorgegonzalez/rice |
| max_upload_size | |
| id | 184974 |
| size | 104,416 |
🍚 A modern, feature-rich system information tool written in Rust

cargo install rice
git clone https://github.com/jorgegonzalez/rice.git
cd rice
cargo build --release
cargo install --path .
# Build and run with docker-compose
docker compose up --build
# Run with different commands
docker compose run --rm rice --help
docker compose run --rm rice --version
# Build and run directly
docker build -t rice:local .
docker run --rm rice:local
# Default output with ASCII art and system info
rice
# Use custom image (iTerm2/Kitty)
rice --image ~/Pictures/wallpaper.png
# Generate config file
rice config
# Show system information (neofetch-style with ASCII art)
rice
# Show system info without ASCII art
rice --no-logo
# Show system info with custom image (iTerm2/Kitty)
rice --image ~/Pictures/logo.png
# Generate config file and open in editor
rice config
# Enable verbose logging
rice --verbose
# Output in JSON format
rice --format json
rice system # System overview
rice cpu # CPU information
rice memory # Memory usage
rice disk # Disk usage
rice network # Network info
# Default output
rice
# With custom image
rice --image ~/Pictures/sunset.jpg
# Without ASCII art
rice --no-logo
# JSON output
rice --format json | jq '.'
# Edit configuration
rice config
Rice uses TOML configuration files.
rice config
~/.config/rice/config.toml%APPDATA%/rice/config.tomlSee config.example.toml for all available options.
Add custom shell commands to display additional information:
[info.custom_commands]
git_branch = "git branch --show-current"
current_time = "date '+%H:%M:%S'"
weather = "curl -s 'wttr.in?format=%l:+%c+%t'"
public_ip = "curl -s ifconfig.me"
uptime_fancy = "uptime | sed 's/.*up //'"
battery = "pmset -g batt | grep -o '[0-9]*%'"
Commands run when Rice executes. Failed or slow commands are skipped. Output limited to 100 characters.
Machine-readable output for scripting and automation:
rice --format json
{
"os": "Darwin 15.6.1",
"host": "MacBookAir",
"kernel": "24.6.0",
"uptime": "11d 15h 10m",
"packages": "52 (brew)",
"shell": "zsh 5.9",
"cpu": "Apple M1 (8 cores) @ 3204 MHz",
"memory": {
"used": 12624,
"total": 16384,
"percentage": 77.1
},
"disk": {
"used": 538,
"total": 920,
"percentage": 58.5
}
}
cargo build
cargo build --release
cargo test
cargo run
cargo run -- --help
MIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.