dotfiles/system/.local/bin/games
Severin Kaderli c2889d72f4
Make rofi menus case insensitive
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-08-21 20:03:04 +02:00

40 lines
584 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: 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