2022-12-26 14:20:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Script to get anime game's wish history link for paimon.moe
|
|
|
|
|
|
|
|
|
2023-01-03 17:16:54 +01:00
|
|
|
if [ $XDG_SESSION_TYPE = "wayland" ]; then
|
|
|
|
if cat -v "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | tail -n 1 | wl-copy -n ; then
|
2022-12-26 14:20:37 +01:00
|
|
|
quick-notify "Copied wish link"
|
|
|
|
else
|
|
|
|
quick-notify "Failed to copy"
|
|
|
|
fi
|
|
|
|
else
|
2023-01-03 17:16:54 +01:00
|
|
|
if cat -v "$HOME/.local/share/anime-game-launcher/game/drive_c/Program Files/Genshin Impact/GenshinImpact_Data/webCaches/Cache/Cache_Data/data_2" | grep "e20190909gacha-v2" | sed 's/1\/0\//\n/g' | grep "e20190909gacha-v2" | sed 's/global.*/global/' | tail -n 1 | xclip -sel c ; then
|
2022-12-26 14:20:37 +01:00
|
|
|
quick-notify "Copied wish link"
|
|
|
|
else
|
|
|
|
quick-notify "Failed to copy"
|
|
|
|
fi
|
|
|
|
fi
|