Giter Club home page Giter Club logo

pixfetch's Introduction

pixfetch

Another fetch program with pixelized images written in Rust

screenshot with default config screenshot with custom config

Configuration

pixfetch can be configured using a config file in $XDG_CONFIG_HOME/pixfetch/config.toml or when $XDG_CONFIG_HOME is not set in $HOME/.config/pixfetch/config.toml. To see all options you can have a look at the default configuration file.

Additionally, all configuration can also be overridden with flags from the command line. To see those options run pixfetch --help or pixfetch -h for shorter descriptions.

Installation

Arch Linux

On Arch Linux pixfetch can be installed through the AUR with a helper like paru or yay:

paru -S pixfetch

Cargo

In case you do not need the man page and shell completion scripts you can also install pixfetch through cargo:

cargo install pixfetch

Manual

Binary releases

0. Setup

You can set these variables beforehand to be able to just copy below commands (edit the values accordingly):

version=1.0.0
platform=x86_64-unknown-linux-musl
1. Download

Download the latest release for your platform from the releases page. In case there is no suitable download option for you, please open an issue:

wget https://github.com/RubixDev/pixfetch/releases/download/v$version/pixfetch-$version-$platform.tar.gz
2. Extract the downloaded archive:
tar -xvf pixfetch-$version-$platform.tar.gz

and open the directory:

cd pixfetch-$version-$platform
3. Copy the files to their respective places:
sudo install -Dm755 pixfetch /usr/bin/pixfetch
sudo install -Dm644 README.md /usr/share/doc/pixfetch/README.md
sudo install -Dm644 LICENSE /usr/share/licenses/pixfetch/LICENSE
sudo install -Dm644 doc/pixfetch.1.gz /usr/share/man/man1/pixfetch.1.gz
sudo install -Dm644 completion/_pixfetch /usr/share/zsh/site-functions/_pixfetch
sudo install -Dm644 completion/pixfetch.bash /usr/share/bash-completion/completions/pixfetch
sudo install -Dm644 completion/pixfetch.fish /usr/share/fish/vendor_completions.d/pixfetch.fish

Note: For bash completion make sure you have bash-completion installed

From source

1. Clone the repository:
git clone https://github.com/RubixDev/pixfetch.git
2. Compile the binary:
cargo build --release
3. Copy the binary, README and LICENSE
sudo install -Dm755 "${CARGO_TARGET_DIR:-target}/release/pixfetch" /usr/bin/pixfetch
sudo install -Dm644 README.md /usr/share/doc/pixfetch/README.md
sudo install -Dm644 LICENSE /usr/share/licenses/pixfetch/LICENSE
4. Locate the output directory:

This is where the generated man page and shell completion scripts are located. The location of that folder was logged while building the binary. Alternatively you can use following command:

find "${CARGO_TARGET_DIR:-target}/release" -name pixfetch.1 -print0 | xargs -0 ls -t | head -n1 | xargs dirname

You can then open that directory using cd.

5. Copy the generated file to their respective locations
gzip pixfetch.1
sudo install -Dm644 pixfetch.1.gz /usr/share/man/man1/pixfetch.1.gz
sudo install -Dm644 _pixfetch /usr/share/zsh/site-functions/_pixfetch
sudo install -Dm644 pixfetch.bash /usr/share/bash-completion/completions/pixfetch
sudo install -Dm644 pixfetch.fish /usr/share/fish/vendor_completions.d/pixfetch.fish

Note: For bash completion make sure you have bash-completion installed

pixfetch's People

Contributors

rubixdev avatar

Stargazers

Tuan Duc Tran avatar Daniyal Ahmad avatar oven avatar Mik Mueller avatar  avatar KokaKiwi avatar

Watchers

 avatar

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.