Giter Club home page Giter Club logo

linux-on-drugs's Introduction

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

linux-on-drugs's People

Contributors

imgbotapp avatar skwalexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mikeei

linux-on-drugs's Issues

-b option not working

Line 87 when checking if an argument is specified after -b

if args.len() > 1 {
               println!(
                  "{}[ x ] : Error: Argument needed after -b/--block-size{}",
                  RED, RESET
               );
               process::exit(1);
}

the condition should be args.len() < 2

this bug will be fixed in the next version

[Feature]: html

Contact Details

No response

Feature Description

I would like to see... some html files

Problem Solved

No response

How can we implement this?

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.