dotfiles/system/.local/bin/games.sh
Severin Kaderli 171f1ca97e
Update aliases and games.sh
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2019-02-26 15:29:45 +01:00

36 lines
524 B
Bash
Executable file

#!/bin/bash
#
# SCRIPT NAME:
# games.sh
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# DESCRIPTION:
# Displays a game menu using rofi.
#
# USAGE:
# ./games.sh
# The rofi prompt
PROMPT="Games"
# Actions for the menu
ACTIONS=(
"1: Steam"
"2: Guild Wars 2"
"3: Pegasus"
)
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
case "${SELECTION}" in
"1")
steam
;;
"2")
g2.sh
;;
"3")
pegasus-fe
;;
esac