Skip to content

Gives custom drugs to your terminal πŸ’Š - Output random colors really fast

License

Notifications You must be signed in to change notification settings

SkwalExe/linux-on-drugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Linux on drugsπŸ§ͺ

Gives custom drugs to your terminal πŸ’Š

Output random colors really fast

Installation πŸ“¦

Arch Linux 🐧

Linux on drugs is in the AUR

yay -S linux-on-drugs

Other πŸͺŸπŸ§

With make - Linux 🐧

Build with make

# πŸ“‚ linux-on-drugs/
make

Move the binary

# πŸ“‚ linux-on-drugs/
make install

Build from source - Linux 🐧 & Windows πŸͺŸ

Clone this repo

git clone https://github.com/SkwalExe/linux-on-drugs.git

build with cargo

# πŸ“‚ linux-on-drugs/
cargo build --release

[ LINUX ONLY ] : Move the binary

# πŸ“‚ linux-on-drugs/
sudo cp target/release/linux-on-drugs /usr/bin/linux-on-drugs

On windows the executable will be target\release\linux-on-drugs.exe you can move it wherever you want.

Usage πŸ“

--block-size

The --block-size option is used to set the size of each color block.

The number corresponds to the number of space/custom characters you want to use per color block.

linux-on-drugs --block-size 20

--content

The --content option is used to set the content of each color block.

It is a space by default but you can use any custom characters.

linux-on-drugs --content "*"

How it works πŸ”¬

Very simple, the program select a color number from 1 to 255 and print a space with this background color.

Uninstall πŸ—‘

With make

Run make uninstall

# πŸ“‚ linux-on-drugs/
make uninstall

removing the binary

sudo rm /usr/bin/linux-on-drugs

Docker 🐳

Run the latest version

docker run --rm -it ghcr.io/skwalexe/linux-on-drugs:main

Test your changes 🚧

Build πŸ› οΈ

# πŸ“‚ linux-on-drugs/
docker build -t linux-on-drugs .

Run πŸƒ

docker run --rm -it linux-on-drugs [OPTIONS]

Change log πŸ“

For version updates and bug fixes, please see our CHANGELOG

final

If you have any problem, don't hesitate to open an issue

contributing

  1. Start by forking this repository

  2. Then clone your fork to your local machine.

git clone https://github.com/your-username/linux-on-drugs.git
  1. Create a new branch
git checkout -b super-cool-feature
  1. Then make your changes

  2. Update the changelog and version number if needed inside Cargo.toml (using Semantic Versioning) and execute cargo run to update the version number inside Cargo.lock

  3. Once you're done, commit your changes and push them to the remote repository.

git add --all
git commit -m "Add super-cool-feature"
git push origin super-cool-feature
  1. Then, open a pull request on GitHub from your fork.
    1. Go to this link
    2. Click compare across forks
    3. On the right, on head repository select your fork
    4. And on compare select the branch you just created
    5. Click on Create Pull Request and submit your pull request