十万伏特!让你的操作终端变成宝可梦!
大家好,我是TJ
一个励志推荐10000款开源项目与工具的程序员
就算不怎么玩游戏看动漫的小伙伴,多多少少也应该知道宠物小精灵,按现在的叫法,就是精灵宝可梦,知道那只黄色的会放电的看着毛茸茸超可爱的只会叫“皮卡皮”的小老鼠吧。
当然TJ君今天可不是来推销皮卡丘游戏的,毕竟我们程序猿还是要多花点精力在学习上~不过如果能让自己的终端操作背景整个变成各种宝可梦,是不是工作学习起来会更有意思呢?
今天要给大家介绍的呢就是这样一个项目,Pokemon-Terminal,终端宝可梦
项目是可以支持在各个不同的平台终端显示总计多达719种宝可梦的模式,让你会觉得编程之路上始终有一只属于你的宝可梦跟着你,是不是觉得很温馨呢?
我们看下各个终端的实际效果如何:
各种各样的宝可梦,可以根据番号进行搜索并直接更换终端及桌面的背景。
目前支持的终端有:iTerm2、ConEmu、Terminology、Windows终端和Tilix终端。
并且支持Windows、MacOS、GNOME、Openbox、i3wm 等不同平台。
确保你使用上述平台和终端,你就可以享受宝可梦对你的关怀!
宝可梦终端安装前提是要求Python 3.7 或者更高的版本。
安装的方法有很多种,例如:
Arch Linux User Repository package (System-wide) pip (System-wide or Per-User) npm (Per-User only) Distutils (System-wide or Per-User)
小伙伴可以根据自己的实际情况选择对应的安装方式,TJ君先把一些常用的语句注释给大家看下:
usage: pokemon [-h] [-n NAME]
[-r [{kanto,johto,hoenn,sinnoh,unova,kalos} [{kanto,johto,hoenn,sinnoh,unova,kalos} ...]]]
[-l [0.xx]] [-d [0.xx]]
[-t [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} ...]]]
[-ne] [-e] [-ss [X]] [-w] [-v] [-dr] [-c]
[id]
Set a pokemon to the current terminal background or wallpaper
positional arguments:
id Specify the wanted pokemon ID or the exact (case
insensitive) name
optional arguments:
-h, --help show this help message and exit
-c, --clear Clears the current pokemon from terminal background
and quits.
Filters:
Arguments used to filter the list of pokemons with various conditions that
then will be picked
-n NAME, --name NAME Filter by pokemon which name contains NAME
-r [{kanto,johto,hoenn,sinnoh,unova,kalos} [{kanto,johto,hoenn,sinnoh,unova,kalos} ...]], --region [{kanto,johto,hoenn,sinnoh,unova,kalos} [{kanto,johto,hoenn,sinnoh,unova,kalos} ...]]
Filter the pokemons by region
-l [0.xx], --light [0.xx]
Filter out the pokemons darker (lightness threshold
lower) then 0.xx (default is 0.7)
-d [0.xx], --dark [0.xx]
Filter out the pokemons lighter (lightness threshold
higher) then 0.xx (default is 0.42)
-t [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} ...]], --type [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} [{normal,fire,fighting,water,flying,grass,poison,electric,ground,psychic,rock,ice,bug,dragon,ghost,dark,steel,fairy} ...]]
Filter the pokemons by type.
-ne, --no-extras Excludes extra pokemons (from the extras folder)
-e, --extras Excludes all non-extra pokemons
Misc:
-ss [X], --slideshow [X]
Instead of simply choosing a random pokemon from the
filtered list, starts a slideshow (with X minutes of
delay between pokemon) in the background with the
pokemon that matched the filters
-w, --wallpaper Changes the desktop wallpaper instead of the terminal
background
-v, --verbose Enables verbose output
-dr, --dry-run Implies -v and doesn't actually changes either
wallpaper or background after the pokemon has been
chosen
Not setting any filters will get a completely random pokemon
比如说切换不同的宝可梦款式,只需在终端输入 pokemon xxx
,就可以更换,这里的xxx指的是宝可梦的英文名字,例如妙蛙种子的进化版妙蛙草的英文名就是ivysaur ,输入 pokemon ivysaur ,就可以更换成妙蛙草的效果
不过有些小伙伴反馈说为什么他们的终端运行起来没有效果,常见的问题是有些图像的颜色有浅有深,所以不够明显,最好的办法是将终端的字体设置为黑色,窗口设置为透明。
以windows终端为例,可以在设置功能中将透明度设置为一半,然后在json文件中加入下面这些语句就可以了:
"backgroundImageOpacity": 0.5,
"useAcrylic": true,
"acrylicOpacity": 0.0
诺,看看这些琳琅满目的宝可梦,是不是迫不及待了呢?
那就赶紧来下载试试吧:
点击下方卡片,关注公众号“TJ君”
回复“宝可梦”,获取仓库地址
关注我,每天了解一个牛x、好用、有趣的东东
往期推荐