fix adding non steam games to not produce duplicates

This commit is contained in:
Tyler Starr 2023-11-11 23:11:02 -08:00
parent 9239b62b0a
commit 1dc014311a
5 changed files with 26 additions and 23 deletions

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Add non-steam games to steam
steam_userid="47011563"
shortcuts_vdf="$HOME/.steam/root/userdata/${steam_userid}/config/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"
)
if command -v steamtinkerlaunch &> /dev/null
then
for app in "${apps[@]}"
do
set -- $app
if ! cat $shortcuts_vdf | grep -q "$2"; then
steamtinkerlaunch addnonsteamgame -ep="$1" -an="$2"
fi
done
fi

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
# Add non-steam games to steam
apps=(
"dolphin-emu Dolphin"
"yuzu Yuzu"
)
if command -v steamtinkerlaunch &> /dev/null
then
for app in "${apps[@]}"
do
set -- $app
steamtinkerlaunch addnonsteamgame -ep="$1" -an="$2"
done
fi

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
chmod 600 ~/.ssh/keys/github_personal

View File

@ -1,4 +1,4 @@
{ config, pkgs, user, lib, ... }:
{ config, pkgs, pkgs-unstable, user, lib, ... }:
{
imports = [
../../modules

View File

@ -15,11 +15,11 @@ in {
hardware.steam-hardware.enable = true;
environment.systemPackages = [
pkgs.steam
pkgs.steam
pkgs.steamtinkerlaunch
pkgs-unstable.yuzu-early-access
pkgs.yuzu-early-access
pkgs.dolphin-emu
pkgs-unstable.ppsspp
pkgs.ppsspp
pkgs-unstable.sunshine
pkgs-unstable.moonlight-qt
];