No description
Find a file
2017-06-07 10:03:52 +01:00
.idea Made Pokemon Name to Number conversion more accurate 2017-04-20 21:59:30 -04:00
Data Made Pokemon Name to Number conversion more accurate 2017-04-20 21:59:30 -04:00
Images Added playboy pikachu 2017-04-27 18:31:12 -04:00
Samples Updated transparency instruction image 2017-05-29 10:52:33 -04:00
Scripts Added get_random_from_region(region) function to the Database class, which picks a random Pokemon from the specified region (passed as a string: johto, kanto, hoenn, sinnoh). Added a wrapper in the main.py file, so a call such as 'pokemon random-johto' can be made to pick a random Pokemon from the Johto region. 2017-06-07 10:03:52 +01:00
.gitignore Update .gitignore 2017-04-18 19:22:59 -04:00
database.py Added get_random_from_region(region) function to the Database class, which picks a random Pokemon from the specified region (passed as a string: johto, kanto, hoenn, sinnoh). Added a wrapper in the main.py file, so a call such as 'pokemon random-johto' can be made to pick a random Pokemon from the Johto region. 2017-06-07 10:03:52 +01:00
LICENSE Initial commit 2017-04-18 14:04:54 -04:00
main.py Added get_random_from_region(region) function to the Database class, which picks a random Pokemon from the specified region (passed as a string: johto, kanto, hoenn, sinnoh). Added a wrapper in the main.py file, so a call such as 'pokemon random-johto' can be made to pick a random Pokemon from the Johto region. 2017-06-07 10:03:52 +01:00
pokemon Fixed bug where inputs with escape code counted the escape code as a letter 2017-04-29 02:20:17 -04:00
README.md Bug fix for FileNotFoundError 2017-06-06 16:53:55 -04:00
scripter.py Bug fix for FileNotFoundError 2017-06-06 16:53:55 -04:00
unittest.py Refactored & added link to main.py 2017-04-29 01:57:47 -04:00

Pokemon-Terminal

alt-tag

Sample Set #1 Sample Set #2
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag
alt-tag alt-tag

Features

  • 493 unique Pokemon
  • Select Pokemon by name or by index number
  • Ability to change the Desktop Wallpaper & the Terminal background
  • Internal search system for finding Pokemon

How to Install

  1. Make sure you have Python 3.5 or higher.
  2. Make sure you have iTerm2.
  3. Download the repository and unzip it.
  4. Locate ~/.bash_profile and add the path to the repository so that it may be accessed from anywhere. Example:
    # Pokemon
    PATH="/Users/Laki/GitHub/Pokemon-Terminal:${PATH}"
    
  5. Reload ~/.bash_profile so that the above changes are updated:
    $ source ~/.bash_profile
    
  6. Now you can change the terminal background like so:
    $ pokemon pikachu
    

Usage


Usage:
    pokemon [parameter]
    
Parameters:
    [name]        -   Change the terminal background to the specified Pokemon.
    [index]       -   Change the terminal background to a Pokemon by its index.
    [region]      -   List all the Pokemon of the specified region.
    [one letter]  -   List all Pokemon who's names begin with a particular letter.
    [two letters] -   List all Pokemon who's names begin with those two letters.
    
Other Parameters:
    pokemon all             -   List all the Pokemon supported.
    pokemon regions         -   List all the available regions.
    pokemon extra           -   List all the Pokemon from the 'Extra' folder.
    pokemon random          -   Change the terminal background to a random Pokemon.
    pokemon ?               -   Identify the current Pokemon in the terminal.
    pokemon _pikachu        -   Change the wallpaper to the specified Pokemon.
    pokemon _random         -   Change the wallpaper to a random Pokemon.
    pokemon _?              -   Identify the current Pokemon in the wallpaper.
    pokemon slideshow       -   Iterate through each Pokemon.
    pokemon slideshow-kanto -   Iterate through each Pokemon in the specified region.
    pokemon help            -   Display this menu.
    

Example:

alt-tag

Suggestions

I highly suggest making the font colors black and the terminal window transparent. Some of the images have both light and dark colours and so it can be difficult to see the text sometimes. Transparency resolves this issue. Since Pokemon Terminal only changes the background, the transparency must be done manually:

  1. Navigate to iTerm2 > Preferences > Profiles > Window
  2. Set the transparency to about half way.
  3. Hit the "blur" checkbox.
  4. Set the blur to maximum.

alt-tag

The result should look like this:

alt-tag

Adding Custom Images

The folder Images/Extra is for adding custom images. You can manually add backgrounds to this folder and they will be visible to the program. Only PNG format is supported. To see a list of all the custom backgrounds type:

$ pokemon extra

Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:

alt-tag

Solutions for Issues

If you experience a line at the top of the terminal after changing the Pokemon, you can remove it by typing in the clear command or opening a new terminal. alt-tag

Saving

I have not yet implemented a way to save the background to a profile. To save a background you will need to setup a startup command in the profile.

  1. Navigate to iTerm2 > Preferences > General
  2. Locate the field where it says Send text at start under Command.
  3. In that field type "pokemon [pokemon name]". You can see an example in the image down below.
  4. You can leave out "; clear" if you don't care about the line showing up at the top of the terminal.

alt-tag

Notes & Credits

  • Nearly all of the Pokemon backgrounds were created by Teej.
  • Originally the images were about 100mb in total but I used pngquant to compress them down to about 30mb.
  • Since the images are compressed, a few of them have some mild compression artifacts.
  • Special thanks to @DrMartinLutherXing for some bug fixes