dotfiles/system/.local/bin/games
Severin Kaderli 410d0b33c6
Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-03-06 16:53:16 +01:00

40 lines
626 B
Bash
Executable file

#!/usr/bin/env bash
#
# SCRIPT NAME:
# games
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# 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