Simple TUI app that that shows system and hardware information Inspired by popular neofetch
- TUI interface
- Support for Windows and Linux
- Customizeable via config file
How to install
Figure out how to set it up on your platform
cd (path to repository)
cargo build
if you want to just compile
cargo build --release
if you want to compile optimized binary
cargo run
if you want to compile and run the binary
After compilation directory named target should be geneated by the compiler.
It contains our compiled binary and some cache.
Navigate to target/debug or target/release and copy binary file where you want.
You can also delete target directory by doing cargo clean
.
Configuration
Hydrogen does not have typical config file. You must edit configuration.rs to do it.
/*imports that we need, don't touch that*/
use crate::tiles;
use tui::style::Color;
/* variabless*/
pub static QUIT_KEY:char ='k'; //currently A - Z keys are supported
pub static SHOW_TITLES:bool = false; //if you want titles or not
pub static SHOW_BORDERS:bool = false; //if you want borders or not
pub static MARGINS:u16=2;
/* customize your colors (visit https://docs.rs/tui/0.16.0/tui/style/enum.Color.html if you need help) */
pub static USER_THEME:tiles::ColorScheme=tiles::ColorScheme{
/* label colors */
foreground_color1 :Color::Blue,
background_color1 :Color::Black,
/* value value */
foreground_color2 :Color::Cyan,
background_color2 :Color::Black
};
/* define your ascii art if you want */
pub static ASCII_ART:&str="\n\n\n\n\n
_ _ _
| | | | | |
| |__| |_ _ __| |_ __ ___ __ _ ___ _ __
| __ | | | |/ _` | '__/ _ \\ / _` |/ _ \\ '_ \\
| | | | |_| | (_| | | | (_) | (_| | __/ | | |
|_| |_|\\__, |\\__,_|_| \\___/ \\__, |\\ __|_| |_|
__/ | _ __ ___ __/ |
|___/ | '__/ __| |___/
_| | \\__ \\
(_)_| |___/
";
And recomile it if you are done