From 556cdd82ecb6f3976a3eaa2e2da26beffa5d8229 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 27 Mar 2024 12:33:52 +0100 Subject: [PATCH] Add Protontricks --- home-manager/home.nix | 1 + home-manager/modules/scripts/cue2chd | 8 ++++++++ home-manager/modules/scripts/iso2chd | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100755 home-manager/modules/scripts/cue2chd create mode 100755 home-manager/modules/scripts/iso2chd diff --git a/home-manager/home.nix b/home-manager/home.nix index 23abfb4..ef4591f 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -61,6 +61,7 @@ starsector # Nice little game I got coaxed into trying inputs.hb-downloader.packages.${pkgs.system}.default # My custom humble bundle bulk link extractor for aria2 list format protonup-qt # Proton ge manager + protontricks # Tricks ungoogled-chromium # For sites that don't work with firefox based browsers abcde # CLI audio ripper jellyfin-mpv-shim # Jellyfin media with mpv diff --git a/home-manager/modules/scripts/cue2chd b/home-manager/modules/scripts/cue2chd new file mode 100755 index 0000000..14450f5 --- /dev/null +++ b/home-manager/modules/scripts/cue2chd @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +for File in *.cue +do + [ -f "$File" ] || continue + chdman createcd -i "$File" -o "${File%.cue}.chd" + rm -v "$File" "${File%.cue}.bin" +done diff --git a/home-manager/modules/scripts/iso2chd b/home-manager/modules/scripts/iso2chd new file mode 100755 index 0000000..5acb45e --- /dev/null +++ b/home-manager/modules/scripts/iso2chd @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +for File in *.iso +do + [ -f "$File" ] || continue + chdman createcd -i "$File" -o "${File%.iso}.chd" + rm -v "$File" +done