mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-18 10:47:31 -08:00
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
# Add non-steam games to steam
|
|
|
|
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 Emulator"
|
|
"/run/current-system/sw/bin/sudachi Sudachi Emulator"
|
|
"/run/current-system/sw/bin/ppsspp PPSSPP Emulator"
|
|
"/run/current-system/sw/bin/retroarch Retroarch Emulator"
|
|
"/run/current-system/sw/bin/ryujinx Ryujinx Emulator"
|
|
"/run/current-system/sw/bin/yuzu Yuzu Emulator"
|
|
)
|
|
|
|
for app in "${apps[@]}"
|
|
do
|
|
set -- $app
|
|
steamtinkerlaunch addnonsteamgame \
|
|
-ep="$1" -an="$2" \
|
|
--hero="$HOME/.local/share/chezmoi/resources/img/$2/hero.png" \
|
|
--iconpath="$HOME/.local/share/chezmoi/resources/img/$2/icons.png" \
|
|
--logo="$HOME/.local/share/chezmoi/resources/img/$2/logo.png" \
|
|
--boxart="$HOME/.local/share/chezmoi/resources/img/$2/boxart.png" \
|
|
--tenfoot="$HOME/.local/share/chezmoi/resources/img/$2/tenfoot.png" \
|
|
--tags="$3" \
|
|
--copy
|
|
done
|