From bd9538a24a9207b4bd88f71956a817b5b042874b Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Wed, 6 Nov 2024 15:58:54 -0600 Subject: support scripts --- stow/console-utils/.local/bin/doom | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 stow/console-utils/.local/bin/doom (limited to 'stow/console-utils/.local/bin/doom') diff --git a/stow/console-utils/.local/bin/doom b/stow/console-utils/.local/bin/doom new file mode 100755 index 0000000..5085e20 --- /dev/null +++ b/stow/console-utils/.local/bin/doom @@ -0,0 +1,29 @@ +#!/bin/bash + +case $1 in + doom) + iwad="$HOME/Games/doom/DOOM.WAD" + ;; + sigil) + iwad="$HOME/Games/doom/DOOM.WAD" + pwad="$HOME/Games/doom/SIGIL_v1_21.wad" + ;; + doom2) + iwad="$HOME/Games/doom/DOOM2.WAD" + ;; + tnt) + iwad="$HOME/Games/doom/TNT.WAD" + ;; + plutonia) + iwad="$HOME/Games/doom/PLUTONIA.WAD" + ;; + *) +esac + +if [ -n "$pwad" ] && [ -n "$iwad" ]; then + flatpak run --filesystem="$HOME/Games/doom:ro" io.github.fabiangreffrath.Doom -iwad "$iwad" -merge "$pwad" +elif [ -n "$iwad" ]; then + flatpak run --filesystem="$HOME/Games/doom:ro" io.github.fabiangreffrath.Doom -iwad "$iwad" +else + flatpak run --filesystem="$HOME/Games/doom:ro" io.github.fabiangreffrath.Doom +fi -- cgit v1.2.3