dotfiles/system/.local/bin/games
Severin Kaderli 348ece6f11
Change email in all files
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-03-07 17:27:17 +01:00

40 lines
620 B
Bash
Executable file

#!/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: Guild Wars 2"
"3: Minecraft"
"4: Pegasus"
)
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
case "${SELECTION}" in
"1")
steam
;;
"2")
gw2
;;
"3")
optirun -b primus minecraft-launcher
;;
"4")
optirun -b primus pegasus-fe
;;
esac