aboutsummaryrefslogtreecommitdiff
path: root/stow/console-utils/.local/bin/doom
blob: 5085e201bceed3735b15d5c1610aba83a082c787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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