add artwork and modify script for emulators in steam

This commit is contained in:
Tyler Starr 2023-11-12 23:49:16 -08:00
parent 1dc014311a
commit 69805610aa
17 changed files with 23 additions and 6 deletions

View File

@ -3,11 +3,12 @@
steam_userid="47011563"
shortcuts_vdf="$HOME/.steam/root/userdata/${steam_userid}/config/shortcuts.vdf"
rm $shortcuts_vdf
apps=(
" /run/current-system/sw/bin/dolphin-emu Dolphin"
"/run/current-system/sw/bin/yuzu Yuzu"
"/run/current-system/sw/bin/ppsspp PPSSPP"
"/run/current-system/sw/bin/dolphin-emu Dolphin Emulator"
"/run/current-system/sw/bin/yuzu Yuzu Emulator"
"/run/current-system/sw/bin/ppsspp PPSSPP Emulator"
)
if command -v steamtinkerlaunch &> /dev/null
@ -15,8 +16,14 @@ then
for app in "${apps[@]}"
do
set -- $app
if ! cat $shortcuts_vdf | grep -q "$2"; then
steamtinkerlaunch addnonsteamgame -ep="$1" -an="$2"
fi
steamtinkerlaunch addnonsteamgame \
-ep="$1" -an="$2" \
--iconpath="$HOME/.local/share/chezmoi/img/$2/icons.ico" \
--hero="$HOME/.local/share/chezmoi/img/$2/hero.png" \
--logo="$HOME/.local/share/chezmoi/img/$2/logo.png" \
--boxart="$HOME/.local/share/chezmoi/img/$2/boxart.png" \
--tenfoot="$HOME/.local/share/chezmoi/img/$2/tenfoot.png" \
--tags="$3" \
--copy
done
fi

BIN
img/Dolphin/boxart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
img/Dolphin/hero.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

BIN
img/Dolphin/icons.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

BIN
img/Dolphin/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
img/Dolphin/tenfoot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
img/PPSSPP/boxart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

BIN
img/PPSSPP/hero.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 KiB

BIN
img/PPSSPP/icons.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
img/PPSSPP/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
img/PPSSPP/tenfoot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

BIN
img/Yuzu/boxart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
img/Yuzu/hero.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

BIN
img/Yuzu/icons.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

BIN
img/Yuzu/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
img/Yuzu/tenfoot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

View File

@ -0,0 +1,10 @@
self: super: {
steamtinkerlaunch = super.steamtinkerlaunch.overrideAttrs (old: {
src = super.fetchFromGitHub {
owner = "sonic2kk";
repo = "steamtinkerlaunch";
rev = "6ff8371e9c8f8122ab4b532e4649e76509a38666";
sha256 = "sha256-DsfUcAqSnrLvIbkIJ52OHlNfxaq+mOjimc9x/tOW1dA=";
};
});
}