Skip to content

Commit

Permalink
Added 4 new artworks (2.1.0)
Browse files Browse the repository at this point in the history
Added `pokeball`, `penguin`, `deadpool`, and `overwatch`
  • Loading branch information
stautonico committed Jul 22, 2022
1 parent 910e989 commit 6af043d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This script has a built-in updater.
To update, simply:

```shell
sudo python-colorscript --update
python-colorscript --update
```

If a new version exists, it will automatically install.
Expand Down Expand Up @@ -86,10 +86,11 @@ You can add this file to the end of your .zshrc or .bashrc to get some ASCII art
To uninstall, simply:

```shell
sudo python-colorscript --uninstall
python-colorscript --uninstall
```

Note: Uninstalling does not remove `~/.config/python-colorscript/`, so manual changes will be saved next time you install. If you wish to remove it, you can manually do so after uninstalling.
Note: Uninstalling does not remove `~/.config/python-colorscript/`, so manual changes will be saved next time you
install. If you wish to remove it, you can manually do so after uninstalling.

# Adding New Art

Expand Down Expand Up @@ -134,6 +135,10 @@ Also, note that at least one color mode is required, but not all three need to b
9. Enter the URL for the artwork in 256 color mode and hit `Enter`

You can add your art to this repo by submitting a pull request with your changes.
Note that any art that is submitted in a pull request needs to:

* Be your own work (or have credits in the readme)
* **Must** have art for all three color modes (to make sure it works on all terminals)

# Troubleshooting

Expand All @@ -149,6 +154,7 @@ You can add your art to this repo by submitting a pull request with your changes
* Check with `stat ~/.local/bin/python-colorscript`

### "command 'python' not found"

* In this case, `python` is either not installed or not an alias of `python3`
* Try running the one liner with `python3` instead of `python` AKA try:
* `wget -qO - https://raw.githubusercontent.com/stautonico/python-color-scripts/main/install | python3`
Expand All @@ -175,3 +181,7 @@ Almost none of this is my original work, so all the credit belongs to these peop
* `skull`: [Stock Unlimited](https://www.stockunlimited.com/vector-illustration/pixel-art-gaming-skull-head_2022273.html)
* `megaman`: [Mega Man](https://www.capcom.com/)
* `boo`: [Nintendo](https://www.nintendo.com/)
* `pokeball` [The Pokémon Company](https://www.pokemon.com/us/)
* `penguin` [Nicole Marie T](https://opengameart.org/content/cute-retro-pixel-penguin-16x16)
* `deadpool` [Marvel](https://www.marvel.com/)
* `overwatch` [Blizzard Entertainment](https://www.blizzard.com/)
20 changes: 20 additions & 0 deletions art.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,25 @@
"8": "eAGrVirIrEjNCc6sSlWyMjLVUUpKd87PyS9SslIKcndy1DDQUYAiPQtNJR2lNLh0eEZmSSpQJBnEDy5ITAYaoGQBFMjLTy_KTClWskpLzClO1YFYAORGR-eV5uToYCMM4BCnEhARq4NuBEiLORziMABFG7J6hD7sGrCpRVOPrBSGsSkGqjOAcpEVGcB9YIBVhQEyCVeBzUVoFhkiYWSjEMYYwiGGYUSpgHsblzI0RejuQQkb_PGDNcTzcCQCbMkAUw-qbkKpLza2FgBp2Nx0",
"16": "eAGrVirIrEjNCc6sSlWyMjLVUUpKd87PyS9SslIKcndy1DDQUYAiPQtNJR2lNLh0eEZmSSpQJBnEDy5ITAYaoGRoBhTJy08vykwpVrJKS8wpTtWB2ADkRkfnlebk6GAjDOAQpxIQEauDbgRIi6EpCsJhCopeDE2oBmDXiVcThlYUXQgCjzagDgO4AIZ6AyS_GuBRaoBOI6nF63JMd6AR6DagGI6AuCwgTSlSiONXj6EYq5vRwpnIlIA9RvGmPqwJEFMntqSPO_HHxtYCAHt08_Q=",
"256": "eAGrVirIrEjNCc6sSlWyMjLVUUpKd87PyS9SslIKcndy1DDQUYAiPQtNJR2lNLh0eEZmSSpQJBnEDy5ITAYaoGRkagYUystPL8pMKVaySkvMKU7VgVgB5EZH55Xm5OhgI4yMjTAwTsUgIlYH3TC4VlNTTIzbSBSDcOrHYh52Y4g2AZtJGIag00QYBDQDRTk-I5ADHCFGrAnY1GA3gchwwOENQ0szrDROx2A4AqQDHRPhIKqYgBKhJBuD3QiCoYGZJshI47hSJ5FZDme2wzQHfzmAryyIja0FAI5rLqY="
},
"pokeball": {
"8": "eAGrVirIr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YqkbjqXvSX20vF2xjJYiW5sexaHP8vm_gBKCsEI"
}
}
4 changes: 4 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def run_system_command(command, verbose=False):


def pre_install_tasks():
# Check if pip is installed
if shutil.which("pip") is None:
err("pip is not installed")
exit(1)
# Some code to run before the install starts
# We need to git clone the repo if we're not running from a clone
if not os.path.exists("./{}".format(PROG_NAME)):
Expand Down
6 changes: 4 additions & 2 deletions python-colorscript
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ZSH_AUTOCOMPLETE_TEMPLATE = os.path.join(CONFIG_DIR, "._python-colorscript")
# TODO: Add the ability to use a custom config location
# TODO: Add debug mode

__VERSION__ = "2.0.0"
__VERSION__ = "2.1.0"


# This portion of the script belongs to the user "kui" (https://github.com/kui) on github
Expand Down Expand Up @@ -276,7 +276,9 @@ if __name__ == '__main__':

if args.list:
print("Available art pieces:")
for x in data.keys():
art_names = list(data.keys())
art_names.sort()
for x in art_names:
print(x)
exit()

Expand Down

0 comments on commit 6af043d

Please sign in to comment.