mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
fix adding non steam games to not produce duplicates
This commit is contained in:
parent
9239b62b0a
commit
1dc014311a
22
home/.chezmoiscripts/run_add-non-steam.sh
Normal file
22
home/.chezmoiscripts/run_add-non-steam.sh
Normal 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
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
chmod 600 ~/.ssh/keys/github_personal
|
@ -1,4 +1,4 @@
|
||||
{ config, pkgs, user, lib, ... }:
|
||||
{ config, pkgs, pkgs-unstable, user, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../modules
|
||||
|
@ -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
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user