Lain GIF Pixel

46

Walrs

# Walrs: Fast Color Scheme Generator

Walrs is a fast color scheme generator written in Rust that creates terminal color schemes from images.

● Screenshot

● Features

  • > Rust-based: Fast and minimal resource usage
  • > Generate terminal color schemes from images
  • > Reload themes instantly
  • > Compatible with pywal templates
  • > Seamless integration with various terminal emulators and applications

● Installation

From AUR:

pixel@system:~$ yay -S walrs

From Cargo:

pixel@system:~$ cargo install rswal

From Source:

pixel@system:~$ git clone https://github.com/pixel2175/walrs.git

pixel@system:~$ cd walrs

pixel@system:~/walrs$ make install

The make install command will place all necessary files in their appropriate locations.

● Usage

Generate a color scheme from an image:

pixel@system:~$ walrs -i /path/to/image.jpg

Example output:

[I] Generate: generate colors.

[I] Template: create templates.

[I] Wallpaper: set the wallpaper.

[I] Terminal: terminal colorscheme set.

[I] Xrdb: xrdb colorscheme set.

[I] Colors: colorscheme applied successfully.

● ● ● ● ● ● ● ● ●

● Performance

Walrs is designed to be lightweight and fast:

  • > Memory usage: Approximately 3.9MB
  • > Processing time: ~180-300ms to generate and apply a color scheme
  • > Dependencies: Requires an external app to set wallpaper

Example benchmark:

pixel@system:~$ time walrs -i /home/pixel/.config/wallpaper/wallhaven-ymwj9d.jpg

[I] Generate: generate colors.

[I] Template: create templates.

[I] Wallpaper: set the wallpaper.

[I] Terminal: terminal colorscheme set.

[I] Xrdb: xrdb colorscheme set.

[I] Colors: colorscheme applied successfully.

● ● ● ● ● ● ● ● ●

________________________________________________________

Executed in 185.80 millis fish external

usr time 119.95 millis 0.56 millis 119.39 millis

sys time 58.95 millis 1.12 millis 57.82 millis

home tools gaza