chore: randomly show pokemon

main
sudo pacman -Syu 2023-08-19 18:25:12 +07:00
parent 10ead5e574
commit cbdd2d3105
5 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,10 @@
▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▀▀
▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▄▄▄▄▄▀▀▀
▀▀

10
data/pokeget/clefairy.txt Normal file
View File

@ -0,0 +1,10 @@
▄▄▄ ▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▄▄▄▀▀▀
▀▀

7
data/pokeget/ditto.txt Normal file
View File

@ -0,0 +1,7 @@
▄▄▄▄ ▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▄▄▄▄▄▄▀▀
▀▀▀▀

View File

@ -58,4 +58,13 @@ if command -v nnn &>/dev/null; then
export NNN_PLUG="p:-preview-tui"
fi
cat ~/.config/pokeget/pikachu.txt
rand_poke=$((RANDOM % 4))
if [[ $rand_poke -eq 0 ]]; then
cat ~/.config/pokeget/pikachu.txt
elif [[ $rand_poke -eq 1 ]]; then
cat ~/.config/pokeget/clefairy.txt
elif [[ $rand_poke -eq 2 ]]; then
cat ~/.config/pokeget/ditto.txt
elif [[ $rand_poke -eq 3 ]]; then
cat ~/.config/pokeget/chikorita.txt
fi

View File

@ -8,3 +8,6 @@ cargo install \
pfetch pokeget
pokeget pikachu >data/pokeget/pikachu.txt
pokeget clefairy >data/pokeget/clefairy.txt
pokeget ditto >data/pokeget/ditto.txt
pokeget chikorita >data/pokeget/chikorita.txt