Skip to content

Simple TUI app that that shows system and hardware information

License

Notifications You must be signed in to change notification settings

Zirenow/Hydrogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hydrogen

Simple TUI app that that shows system and hardware information Inspired by popular neofetch

thumbnail

Features ⭐

  • TUI interface
  • Support for Windows and Linux
  • Customizeable via config file

How to install 🔨

How to install

1.Download Rust toolchain

Figure out how to set it up on your platform

2.Compile

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

cargo guide

3.Install

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 🔧

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

License 📃

MIT

About

Simple TUI app that that shows system and hardware information

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages