• Home
  • About
    • FuzzyGrim

      Another computer enthusiast

    • Email
    • Matrix
    • Github
    • RSS
    • Learn More
  • Posts
    • All Posts
    • All Tags
  • Projects
  • Seasons

pokimg

15 Jan 2022 / 1 minute

About The Project

Pokimg a small script inspired by this project, but since the output depends heavily on the font of your terminal, I decided to make a script that displays a PNG image of the Pokémon. I also made the script work without downloading anything in any other directories.

Screenshot

Requirements

Important:This script requires a terminal that supports images, however, it is currently coded to work only on Kitty and iTerm2.

In addition to one of these terminals, you will also need:

  • Python
  • If you are using iTerm2, you will need to install imgcat by clicking iTerm2 > Install Shell Integration

Usage

You will need to run pokimg:

Printing out a random pokemon:

pokimg

Printing out a specific pokemon:

pokimg -n pikachu

Printing out a random pokemon from generation 1:

pokimg -g 1

Printing out a random pokemon from generations 1,3 and 5:

pokimg -g 1 3 5

Printing out a random pokemon from generations 1-3

pokimg -g 1-3

Printing list of all pokemon names.

pokimg -l

Running on terminal startup

You can display a random pokemon whenever a terminal gets launched by adding the $HOME/pokimg/pokimg to your .bashrc or config.fish or .zshrc.

TODO

These are some of the features I am thinking of adding:

  • Specify generation to print
  • Print a specific pokemon
  • Print list of all pokemon names
  • Add help flag for the program
  • Choose upscale factor


projectpython
Toot RSS Kofi