2017-04-25 18:23:48 +00:00
# Pokemon-Terminal
2017-04-25 18:57:47 +00:00
![alt-tag ](Samples/pikachu.png )
2017-04-25 18:23:48 +00:00
Sample Set #1 | Sample Set #2
:-------------------------------:|:-------------------------------:
2017-04-25 18:57:47 +00:00
![alt-tag ](Samples/bulbasaur.png )| ![alt-tag ](Samples/squirtle.png )
![alt-tag ](Samples/charizard.png )| ![alt-tag ](Samples/eevee.png )
![alt-tag ](Samples/clefairy.png ) | ![alt-tag ](Samples/magikarp.png )
![alt-tag ](Samples/machop.png ) | ![alt-tag ](Samples/slowpoke.png )
![alt-tag ](Samples/muk.png ) | ![alt-tag ](Samples/porygon.png )
2017-04-25 18:23:48 +00:00
![alt-tag ](Samples/chansey.png ) | ![alt-tag ](Samples/growlithe.png )
![alt-tag ](Samples/scyther.png ) | ![alt-tag ](Samples/omanyte.png )
![alt-tag ](Samples/corsola.png ) | ![alt-tag ](Samples/mewtwo.png )
2017-04-25 18:57:47 +00:00
![alt-tag ](Samples/azumarill.png )| ![alt-tag ](Samples/snubbull.png )
![alt-tag ](Samples/wobbuffet.png )| ![alt-tag ](Samples/tyranitar.png )
![alt-tag ](Samples/lugia.png ) | ![alt-tag ](Samples/kyogre.png )
![alt-tag ](Samples/rayquaza.png ) | ![alt-tag ](Samples/deoxys.png )
2017-04-25 23:01:53 +00:00
# Features
- 493 unique Pokemon
- Select Pokemon by name or by index number
2017-05-09 14:02:39 +00:00
- Ability to change the Desktop Wallpaper & the Terminal background
2017-04-25 23:01:53 +00:00
- Internal search system for finding Pokemon
2017-04-25 20:13:49 +00:00
# How to Install
2017-06-11 02:29:12 +00:00
## Mac OS
2017-04-25 20:13:49 +00:00
1. Make sure you have [Python 3.5 ](https://www.python.org/downloads/mac-osx/ ) or higher.
2017-06-11 02:29:12 +00:00
2. Make sure you have [iTerm2 ](http://www.iterm2.com/downloads.html ).
2017-06-07 04:45:26 +00:00
3. Copy and paste the following for the installation:
2017-04-25 20:13:49 +00:00
```
2017-06-07 04:45:26 +00:00
# Pokemon Installation
git clone https://github.com/LazoCoder/Pokemon-Terminal $HOME/.Pokemon-Terminal
echo PATH="$HOME/.Pokemon-Terminal:${PATH}" >> ~/.bash_profile
source ~/.bash_profile
2017-04-25 20:13:49 +00:00
```
2017-06-07 04:45:26 +00:00
4. Now you can change the terminal background like so:
2017-04-25 20:13:49 +00:00
```
$ pokemon pikachu
```
2017-04-25 18:57:47 +00:00
2017-06-11 02:29:12 +00:00
## Linux
2017-04-25 18:57:47 +00:00
2017-06-11 02:29:12 +00:00
1. Make sure you have Python 3.5+ installed, check the instructions of your distribuition.
2. Make sure you have Terminology, again check the package manager of your distribuition
3. Copy and paste the following for the installation:
```bash
# Pokemon Installation
git clone https://github.com/LazoCoder/Pokemon-Terminal $HOME/.Pokemon-Terminal
echo PATH="$HOME/.Pokemon-Terminal:$"PATH"" >> ~/.bash_profile
source ~/.bash_profile
```
4. Now you can change the terminal background like so:
```
pokemon pikachu
```
# Instructions
## Usage
2017-04-25 18:57:47 +00:00
```
Usage:
pokemon [parameter]
2017-06-07 09:07:58 +00:00
2017-04-25 18:57:47 +00:00
Parameters:
2017-05-09 14:02:39 +00:00
[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.
2017-06-07 09:07:58 +00:00
2017-04-25 18:57:47 +00:00
Other Parameters:
pokemon all - List all the Pokemon supported.
pokemon regions - List all the available regions.
2017-04-27 22:55:06 +00:00
pokemon extra - List all the Pokemon from the 'Extra' folder.
2017-05-09 14:02:39 +00:00
pokemon random - Change the terminal background to a random Pokemon.
2017-06-07 09:07:58 +00:00
pokemon random-kanto - Change the terminal background to a random Pokemon from the specified region.
2017-05-09 14:02:39 +00:00
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.
2017-06-07 09:07:58 +00:00
pokemon _random-kanto - Change the wallpaper to a random Pokemon from the specified region.
2017-05-09 14:02:39 +00:00
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.
2017-04-25 18:57:47 +00:00
pokemon help - Display this menu.
2017-06-07 09:07:58 +00:00
2017-04-25 18:57:47 +00:00
```
Example:
![alt-tag ](Samples/usage.gif )
# Suggestions
2017-05-09 14:02:39 +00:00
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:
2017-04-25 18:57:47 +00:00
1. Navigate to iTerm2 > Preferences > Profiles > Window
2017-05-09 14:12:28 +00:00
2. Set the transparency to about half way.
2017-04-25 18:57:47 +00:00
3. Hit the "blur" checkbox.
4. Set the blur to maximum.
2017-06-08 00:42:25 +00:00
5. Optionally you can set the blending to maximum to adjust the colors to look like the samples provided.
2017-04-25 18:57:47 +00:00
![alt-tag ](Samples/transparency_setting.png )
2017-05-09 14:02:39 +00:00
The result should look like this:
![alt-tag ](Samples/transparency_tauros.png )
2017-04-27 22:55:06 +00:00
# Adding Custom Images
2017-05-09 14:12:28 +00:00
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:
2017-04-27 22:55:06 +00:00
```
2017-05-09 14:02:39 +00:00
$ pokemon extra
2017-04-27 22:55:06 +00:00
```
2017-05-09 14:12:28 +00:00
Alternatively, you can delete images from this folder and it will not break the program. These are some custom backgrounds:
2017-04-27 22:55:06 +00:00
2017-05-09 14:02:39 +00:00
![alt-tag ](Samples/custom_deoxys.gif )
2017-04-25 18:57:47 +00:00
# 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 ](Samples/line.png )
2017-04-25 20:27:03 +00:00
2017-04-25 20:41:56 +00:00
# Saving
2017-06-11 02:29:12 +00:00
## Mac OS
I have not yet implemented a way to save the terminal background to a profile. To save a background you will need to setup a startup command in the profile.
2017-04-25 20:41:56 +00:00
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 ](Samples/saving.png )
2017-06-11 02:29:12 +00:00
## Linux
Terminology already saves it automatically, just tick and remove the "temporary" tick in the settings just in case, after setting your desired pokemon (see image below).
![Terminlogy temporary ](http://i.imgur.com/BTqYXKa.png )
However to setup a random pokemon each session do:
1. Open `~/.bashrc` in your favorite text editor.
2. Make sure your `~/.bashrc` file has a guard check for interactive terminals, so you don't try to set the background every possible time bash runs. Place this before any command that may produce any output (again, if you don't have it already, and variable setting, e.g `exports` don't produce output):
``` bash
if [[ $- != *i* ]]; then #You might have this already
return
fi
```
3. You may also want to check if terminology is actually running before trying to set the background, so that leads us to
```bash
if [[ "$TERMINOLOGY" -eq "1" ]]; then
pokemon random
fi
```
2017-06-06 20:53:55 +00:00
# Notes & Credits
2017-04-25 20:27:03 +00:00
- Nearly all of the Pokemon backgrounds were created by [Teej ](https://pldh.net/gallery/the493 ).
- Originally the images were about 100mb in total but I used [pngquant ](https://pngquant.org/ ) to compress them down to about 30mb.
2017-05-09 14:12:28 +00:00
- Since the images are compressed, a *few* of them have some mild compression artifacts.
2017-06-08 00:42:25 +00:00
- Special thanks to [@DrMartinLutherXing ](https://github.com/DrMartinLutherXing ) for some bug fixes.
- Thanks to [@joanbono ](https://github.com/joanbono ) for the easy installation script in the readme.
- Thanks to [@BnMcG ](https://github.com/BnMcG ) for the region specific randomize function.
2017-06-11 02:29:12 +00:00
- Thanks to [@samosaara ](https://github.com/samosaara ) for the linux (GNOME and Terminology) port