#!/usr/bin/env bash
# 
# SCRIPT NAME:
# games
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Displays a game menu using rofi.
#
# USAGE:
# ./games

# The rofi prompt
PROMPT="Games"

# Actions for the menu
ACTIONS=(
    "1: Steam"
    "2: Lutris"
    "3: Minecraft"
    "4: Pegasus"
)

SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -i -p "${PROMPT}" | cut -d ":" -f1)
case "${SELECTION}" in
    "1")
        steam
        ;;
    "2")
        lutris
        ;;
    "3")
        minecraft-launcher
        ;;
    "4")
        pegasus-fe
        ;;
esac
